public void CreateImageDirectly()
{
//ExStart
//ExFor:Shape.#ctor(DocumentBase,ShapeType)
//ExFor:ShapeType
//ExSummary:Shows how to create and add an image to a document without using document builder.
Document doc = new Document();
Shape shape = new Shape(doc, ShapeType.Image);
shape.ImageData.SetImage(MyDir + "Hammer.wmf");
shape.Width = 100;
shape.Height = 100;
doc.FirstSection.Body.FirstParagraph.AppendChild(shape);
doc.Save(MyDir + @"\Artifacts\Image.CreateImageDirectly.doc");
//ExEnd
}