ImageSaveOptions.PixelFormat
ImageSaveOptions PixelFormat property. Gets or sets the pixel format for the generated images.
ImageSaveOptions.PixelFormat property
Gets or sets the pixel format for the generated images.
public ImagePixelFormat PixelFormat { get; set; }
Remarks
This property has effect only when saving to raster image formats.
The default value is Format32BppArgb.
Pixel format of the output image may differ from the set value because of work of GDI+.
Examples
Shows how to specify image pixel format.
ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.PixelFormat = ImagePixelFormat.Format1bppIndexed;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "ImageSaveOptions.PixelFormat.Png", imgSaveOptions)
.Execute();
See Also
- enum ImagePixelFormat
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize