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.
See the Remarks section for details and some examples.
Inheritance Hierarchy
KGySoft.Drawing.ImagingInterleavedGradientNoiseDitherer
Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.2
Syntax
The InterleavedGradientNoiseDitherer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() ![]() | InterleavedGradientNoiseDitherer |
Initializes a new instance of the InterleavedGradientNoiseDitherer class.
See the Examples section for some examples. |
Extension Methods
Name | Description | |
---|---|---|
![]() | InitializeAsync |
Gets an IDitheringSession instance potentially asynchronously that can be used to dither the result of the specified IQuantizingSession
applied to the specified source.
If ditherer is a known ditherer that can be evaluated quickly, then this method might be executed synchronously.
(Defined by DithererExtensions.)This method is available in.NET Framework 4.0 and above. |
Remarks
![]() |
---|
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 image | Quantized image |
---|---|
|
|
|
|
See Also
Reference
KGySoft.Drawing.ImagingInterleavedGradientNoiseDitherer