## Printer Device Driver

[prev][next][parent][TOC]

### Color Dithering

Color dithering is technique of interleaving cyan, magenta, yellow, and optionally black so that the eye perceives another color-such as pink or orange. Color dithering converts picture pels in sizes 2, 4, 8, 16, 24, or 32 bits of RGB/K color to a 3 or 4 bitpel consisting of cyan, magenta, yellow, and optionally K(black). The best dither functions diffuse or spread out colors and also act as a low-pass filter to changes in color. The diffusion of color causes the printing of cyan, magenta, and yellow in the proper density so that from a distance, the eye perceives the correct color.

Following are the dithering functions:

GplDitherCreateInstance
GplDitherRGBtoCMYK
GplDitherRGBtoRGB
GplDitherDeleteInstance

Gamma-correction functions are a part of the color-dithering package and are used internally by the dithering code, but they are also available separately. See Gamma Correction.