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

NameValueDescription
Format16BppRgb555016 bits per pixel, RGB.
Format16BppRgb565116 bits per pixel, RGB.
Format16BppArgb1555216 bits per pixel, ARGB.
Format24BppRgb324 bits per pixel, RGB.
Format32BppRgb432 bits per pixel, RGB.
Format32BppArgb532 bits per pixel, ARGB.
Format32BppPArgb632 bits per pixel, ARGB, premultiplied alpha.
Format48BppRgb748 bits per pixel, RGB.
Format64BppArgb864 bits per pixel, ARGB.
Format64BppPArgb964 bits per pixel, ARGB, premultiplied alpha.
Format1bppIndexed101 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