See the Remarks section for details and some examples.
KGySoft.Drawing.ImagingRandomNoiseDitherer
Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.3.0
The RandomNoiseDitherer type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | RandomNoiseDitherer |
Initializes a new instance of the RandomNoiseDitherer class.
See the Examples section for some examples. |
The RandomNoiseDitherer generates some random white noise to the quantized source.
![]() |
---|
There are also a couple of ditherers with non-random noise-like patterns in this library. See also the OrderedDitherer.BlueNoise property and the InterleavedGradientNoiseDitherer class. |
To get always the same result for the same source image and quantizer you can specify a seed when initializing a RandomNoiseDitherer instance. Please note though that specifying a seed prevents parallel processing, which makes performance worse on multi-core systems.
The following table demonstrates the effect of the dithering:
Original image | Quantized image |
---|---|
|
|
|
|