ImageSaveOptionsTiffBinarizationMethod Property

Gets or sets method used while converting images to 1 bpp format when SaveFormat is SaveFormat.Tiff and TiffCompression is equal to TiffCompression.Ccitt3 or TiffCompression.Ccitt4.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public ImageBinarizationMethod TiffBinarizationMethod { get; set; }

Property Value

Type: ImageBinarizationMethod
Remarks

The default value is ImageBinarizationMethod.Threshold.

Examples
Shows how to control the threshold for TIFF binarization in the Floyd-Steinberg method
Document doc = new Document (MyDir + "Rendering.docx");

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff)
{
    TiffCompression = TiffCompression.Ccitt3,
    ImageColorMode = ImageColorMode.Grayscale,
    TiffBinarizationMethod = ImageBinarizationMethod.FloydSteinbergDithering,
    // The default value of this property is 128. The higher value, the darker image
    ThresholdForFloydSteinbergDithering = 254
};

doc.Save(ArtifactsDir + "ImageSaveOptions.FloydSteinbergDithering.tiff", options);
See Also