Click or drag to resize
Pdftools logo

DitheringMode Enumeration

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.

Namespace: PdfTools.Pdf2Image
Assembly: PdfTools (in PdfTools.dll) Version: 1.17.0+23d126d295bd5cb25c315a91f72f3e0c111acb34
Syntax
C#
public enum DitheringMode
Members
Member nameValueDescription
None0

No dithering

Simple thresholding without dithering. Best for clean line art and text-only documents.
Halftone1

Halftone dithering

Ordered halftone dithering using a periodic pattern. Provides a good balance between visual quality and compression.
FloydSteinberg2

Floyd-Steinberg dithering

Error diffusion dithering that distributes quantization errors to neighboring pixels. Produces high-quality results, especially for photographic content.
Atkinson3

Atkinson dithering

A variant of error diffusion dithering that produces results with good compression characteristics.
See Also