InterleavedGradientNoiseDitherer Class

KGy SOFT Drawing Libraries Help
Provides an IDitherer implementation for applying an interleaved gradient noise pattern to the dithered result. For other noise-like ditherers see the OrderedDitherer.BlueNoise property and the RandomNoiseDitherer class.
See the Remarks section for details and some examples.
Inheritance Hierarchy

SystemObject
  KGySoft.Drawing.ImagingInterleavedGradientNoiseDitherer

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.0.0
Syntax

public sealed class InterleavedGradientNoiseDitherer : IDitherer

The InterleavedGradientNoiseDitherer type exposes the following members.

Constructors

  NameDescription
Public methodCode exampleInterleavedGradientNoiseDitherer
Initializes a new instance of the InterleavedGradientNoiseDitherer class.
See the Examples section for some examples.
Top
Remarks

Note Note
The noise generated by the InterleavedGradientNoiseDitherer is not random but based on a formula so using the same source image, quantizer and strength produces always the same result (similarly to the BlueNoise ditherer, which is based on ordered dithering). To dither images with real random noise use the RandomNoiseDitherer, which applies white noise to the quantized source.

The following table demonstrates the effect of the dithering:

Original imageQuantized image

Color hues with alpha gradient
Color hues with alpha gradient

Color hues with system default 8 BPP palette and silver background
Quantizing with system default 8 BPP palette, no dithering

Color hues with system default 8 BPP palette, using silver background and interleaved gradient noise dithering
Quantizing with system default 8 BPP palette and interleaved gradient noise dithering

Grayscale color shades with different bit depths
Grayscale color shades

Grayscale color shades with black and white palette
Quantizing with black and white palette, no dithering

Grayscale color shades with black and white palette using interleaved gradient noise dithering
Quantizing with black and white palette and interleaved gradient noise dithering

See Also

Reference

KGySoft.Drawing.ImagingInterleavedGradientNoiseDitherer