ImageColorMode Enum

Wordize.Saving.ImageColorMode enum. Specifies the color mode for the generated images of document pages.

ImageColorMode enumeration

Specifies the color mode for the generated images of document pages.

public enum ImageColorMode

Values

NameValueDescription
None0The pages of the document will be rendered as color images.
Grayscale1The pages of the document will be rendered as grayscale images.
BlackAndWhite2The pages of the document will be rendered as black and white images.

Examples

Shows how to specify image color mode.

ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.ImageColorMode = ImageColorMode.Grayscale;

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

See Also