public void InsertImageFromImageCustomSizeEx()
{
//ExStart
//ExFor:DocumentBuilder.InsertImage(Image, Double, Double)
//ExSummary:Shows how to import an image into a document, with a custom size.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Image rasterImage = Image.FromFile(MyDir + "Aspose.Words.gif");
try
{
builder.InsertImage(rasterImage,
ConvertUtil.PixelToPoint(450), ConvertUtil.PixelToPoint(144));
builder.Writeln();
}
finally
{
rasterImage.Dispose();
}
builder.Document.Save(MyDir + @"\Artifacts\Image.CreateFromImageWithStreamCustomSize.doc");
//ExEnd
}