ImageSaveOptions.VerticalResolution
ImageSaveOptions VerticalResolution property. Gets or sets the vertical resolution for the generated images in dots per inch.
ImageSaveOptions.VerticalResolution property
Gets or sets the vertical resolution for the generated images, in dots per inch.
public float VerticalResolution { get; set; }
Remarks
This property has effect only when saving to raster image formats and affects the output size in pixels.
The default value is 96.
Examples
Shows how to specify images vertical and horizontal resolution.
ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Jpeg);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.HorizontalResolution = 300;
imgSaveOptions.VerticalResolution = 200;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "ImageSaveOptions.HorizontalResolution.jpg", imgSaveOptions)
.Execute();
See Also
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize