ImageSaveOptions.ImageSize
ImageSaveOptions ImageSize property. Gets or sets the size of a generated image in pixels.
ImageSaveOptions.ImageSize property
Gets or sets the size of a generated image in pixels.
public Size ImageSize { get; set; }
Remarks
This property has effect only when saving to raster image formats.
The default value is (0 x 0), which means that the size of the generated image will be calculated according to the size of the image in points, the specified resolution and scale.
Examples
Shows how to specify image size.
ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.ImageSize = new Size(100, 100);
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "ImageSaveOptions.ImageSize.Png", imgSaveOptions)
.Execute();
See Also
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize