Dithering |
The dithering algorithm for converting to bitonal images
Dithering is the process of converting continuous-tone (grayscale or color) content to black-and-white (bitonal) representation. Different algorithms offer trade-offs between visual quality and compression efficiency.public enum DitheringMode
| Member name | Value | Description |
|---|---|---|
| None | 0 | No dithering Simple thresholding without dithering. Best for clean line art and text-only documents. |
| Halftone | 1 | Halftone dithering Ordered halftone dithering using a periodic pattern. Provides a good balance between visual quality and compression. |
| FloydSteinberg | 2 | Floyd-Steinberg dithering Error diffusion dithering that distributes quantization errors to neighboring pixels. Produces high-quality results, especially for photographic content. |
| Atkinson | 3 | Atkinson dithering A variant of error diffusion dithering that produces results with good compression characteristics. |