ImageSaveOptions
ImageSaveOptions constructor. Initializes a new instance of this class that can be used to save rendered images in the Tiff Png Bmp Jpeg Emf Eps WebP or Svg format.
ImageSaveOptions constructor
Initializes a new instance of this class that can be used to save rendered images in the Tiff, Png, Bmp, Jpeg, Emf, Eps, WebP or Svg format.
public ImageSaveOptions(SaveFormat saveFormat)
| Parameter | Type | Description |
|---|---|---|
| saveFormat | SaveFormat | Can be Tiff, Png, Bmp, Jpeg, Emf, EpsWebP or Svg format. |
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
- enum SaveFormat
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize