Dithering trades spatial resolution for grey-level depth. A device with few output levels approximates an intermediate intensity by mixing the available levels over a small region, which the eye averages at normal viewing distance.
- Each pixel is divided into sub-pixels, each forced to an available level
- The count of sub-pixels at the higher level encodes the target intensity
- A fixed dither matrix sets the order in which sub-pixels switch on, spreading them to avoid visible clumps
Used in newspaper halftoning, laser printing, and exporting photos to a small fixed palette such as GIF.
Ordered Dithering
Let be the target intensity. An dither matrix contains the integers from to . Each entry gives the threshold for its sub-pixel.
- threshold at sub-pixel
- dither matrix entry at sub-pixel
- bi-level output at sub-pixel
- dither matrix order
The Bayer dither matrix is:

Left: Original. Middle: Reduced to 2 levels by a single threshold, which loses most of the tones. Right: Reduced to 2 levels with an Bayer dither matrix, where the density of white dots recovers the tones.
Generated from a photo by Hannes Röst, CC BY-SA 3.0.
Worked Example
A bi-level device with target intensity across one block, using the Bayer dither matrix above.
Solution Reveal Hide
- has threshold . Since , set to .
- has threshold . Since , set to .
- has threshold . Since , set to .
- has threshold . Since , set to .
2 of the 4 sub-pixels are on, so the block averages , matching the target. The on sub-pixels form a checkerboard.