See the Remarks section for details and some examples.
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.3.0
public sealed class RandomNoiseDitherer : IDitherer
Public NotInheritable Class RandomNoiseDitherer Implements IDitherer
public ref class RandomNoiseDitherer sealed : IDitherer
[<SealedAttribute>] type RandomNoiseDitherer = class interface IDitherer end
Thetype exposes the following members.
Initializes a new instance of theclass.
See the Examples section for some examples.
Thegenerates 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 ainstance. 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|