ImagePixelFormat Enum
Wordize.Saving.ImagePixelFormat enum. Specifies the pixel format for the generated images of document pages.
ImagePixelFormat enumeration
Specifies the pixel format for the generated images of document pages.
public enum ImagePixelFormat
Values
Name | Value | Description |
---|---|---|
Format16BppRgb555 | 0 | 16 bits per pixel, RGB. |
Format16BppRgb565 | 1 | 16 bits per pixel, RGB. |
Format16BppArgb1555 | 2 | 16 bits per pixel, ARGB. |
Format24BppRgb | 3 | 24 bits per pixel, RGB. |
Format32BppRgb | 4 | 32 bits per pixel, RGB. |
Format32BppArgb | 5 | 32 bits per pixel, ARGB. |
Format32BppPArgb | 6 | 32 bits per pixel, ARGB, premultiplied alpha. |
Format48BppRgb | 7 | 48 bits per pixel, RGB. |
Format64BppArgb | 8 | 64 bits per pixel, ARGB. |
Format64BppPArgb | 9 | 64 bits per pixel, ARGB, premultiplied alpha. |
Format1bppIndexed | 10 | 1 bit per pixel, Indexed. |
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
- namespace Wordize.Saving
- assembly Wordize