Tip
See the Remarks section of the ErrorDiffusionDitherer class for more details and examples.
public static ErrorDiffusionDitherer StevensonArce { get; }Public Shared ReadOnly Property StevensonArce As ErrorDiffusionDitherer
Getpublic:
static property ErrorDiffusionDitherer^ StevensonArce {
ErrorDiffusionDitherer^ get ();
}static member StevensonArce : ErrorDiffusionDitherer with getpublic static IReadWriteBitmapData ToDitheredStevensonArce(IReadWriteBitmapData source, IQuantizer quantizer)
{
IDitherer ditherer = ErrorDiffusionDitherer.StevensonArce;
// a.) this solution returns a new bitmap data and does not change the original one:
return source.Clone(quantizer.PixelFormatHint, quantizer, ditherer);
// b.) alternatively, you can perform the dithering directly on the source bitmap data:
source.Dither(quantizer, ditherer);
return source;
}The example above may produce the following results:
Original image | Quantized and dithered image |
|---|---|
|
|
|
|