ImageSaveOptions.ThresholdForFloydSteinbergDithering

ImageSaveOptions ThresholdForFloydSteinbergDithering property. Gets or sets the threshold that determines the value of the binarization error in the FloydSteinberg method. when ImageBinarizationMethod is FloydSteinbergDithering.

ImageSaveOptions.ThresholdForFloydSteinbergDithering property

Gets or sets the threshold that determines the value of the binarization error in the Floyd-Steinberg method. when ImageBinarizationMethod is FloydSteinbergDithering.

public byte ThresholdForFloydSteinbergDithering { get; set; }

Remarks

The default value is 128.

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