ImageSaveOptions.ImageContrast
ImageSaveOptions ImageContrast property. Gets or sets the contrast for the generated images.
ImageSaveOptions.ImageContrast property
Gets or sets the contrast for the generated images.
public float ImageContrast { get; set; }
Remarks
This property has effect only when saving to raster image formats.
The default value is 0.5. The value must be in the range between 0 and 1.
Examples
Shows how to specify image Brightness and Contrast.
ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imgSaveOptions.PageSet = new PageSet(1);
imgSaveOptions.ImageBrightness = 0.7f;
imgSaveOptions.ImageContrast = 0.3f;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "ImageSaveOptions.ImageBrightness.Png", imgSaveOptions)
.Execute();
See Also
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize