Skip to main content
DitheringMethodEnum enumeration constants are used to specify the image dithering algorithm.
typedef enum {
 DM_Bayer,
 DM_FloydSteinberg
} DitheringMethodEnum;

Elements

NameDescription
DM\_BayerBayer (ordered) dithering. The algorithm dithers the image by applying a threshold map on the pixels, causing some of the pixels to be rendered at a different color. The resulting image has noticeable crosshatch pattern.
DM\_FloydSteinbergFloyd–Steinberg dithering. The algorithm dithers the image by diffusing the quantization error of the pixel to its neighboring pixels.

Used in

IImageDocument::DitherImage