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
Name | Value | Description |
---|---|---|
None | 0 | The pages of the document will be rendered as color images. |
Grayscale | 1 | The pages of the document will be rendered as grayscale images. |
BlackAndWhite | 2 | The 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
- namespace Wordize.Saving
- assembly Wordize