ImageSaveOptions.Resolution

ImageSaveOptions Resolution property. Sets both horizontal and vertical resolution for the generated images in dots per inch.

ImageSaveOptions.Resolution property

Sets both horizontal and vertical resolution for the generated images, in dots per inch.

public float Resolution { set; }

Remarks

This property has effect only when saving to raster image formats.

Examples

Shows how to specify image resolution.

ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Jpeg);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.Resolution = 200;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "ImageSaveOptions.Resolution.jpg", imgSaveOptions)
    .Execute();

See Also