ImageBinarizationMethod Enum
Wordize.Saving.ImageBinarizationMethod enum. Specifies the method used to binarize image.
ImageBinarizationMethod enumeration
Specifies the method used to binarize image.
public enum ImageBinarizationMethod
Values
Name | Value | Description |
---|---|---|
Threshold | 0 | Specifies threshold method. |
FloydSteinbergDithering | 1 | Specifies dithering using Floyd-Steinberg error diffusion method. |
Examples
Shows how to specify tiff image options.
ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Tiff);
imgSaveOptions.TiffCompression = ImageTiffCompression.Ccitt3;
imgSaveOptions.TiffBinarizationMethod = ImageBinarizationMethod.FloydSteinbergDithering;
imgSaveOptions.ThresholdForFloydSteinbergDithering = 64;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "ImageSaveOptions.TiffCompression.tiff", imgSaveOptions)
.Execute();
See Also
- namespace Wordize.Saving
- assembly Wordize