InterleavedGradientNoiseDitherer Class
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.0.0
public sealed class InterleavedGradientNoiseDitherer : IDitherer
Public NotInheritable Class InterleavedGradientNoiseDitherer
Implements IDitherer
public ref class InterleavedGradientNoiseDitherer sealed : IDitherer
[<SealedAttribute>]
type InterleavedGradientNoiseDitherer =
class
interface IDitherer
end
- Inheritance
- Object InterleavedGradientNoiseDitherer
- Implements
- IDitherer
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 |
---|
 Color hues with alpha gradient
| |
 Grayscale color shades
| |
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.
This method is available in.NET Framework 4.0 and above.
(Defined by DithererExtensions) |
Reference
InterleavedGradientNoiseDitherer