ImageSaveOptions.HorizontalResolution

ImageSaveOptions HorizontalResolution property. Gets or sets the horizontal resolution for the generated images in dots per inch.

ImageSaveOptions.HorizontalResolution property

Gets or sets the horizontal resolution for the generated images, in dots per inch.

public float HorizontalResolution { 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