ImageSaveOptions.ImageColorMode

ImageSaveOptions ImageColorMode property. Gets or sets the color mode for the generated images.

ImageSaveOptions.ImageColorMode property

Gets or sets the color mode for the generated images.

public ImageColorMode ImageColorMode { get; set; }

Remarks

This property has effect only when saving to raster image formats.

The default value is None.

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