> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DitheringMethodEnum

DitheringMethodEnum enumeration constants are used to specify the image dithering algorithm.

```
typedef enum {
 DM_Bayer,
 DM_FloydSteinberg
} DitheringMethodEnum;
```

## Elements

| Name                 | Description                                                                                                                                                                                                                  |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DM\\\_Bayer          | Bayer (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\\\_FloydSteinberg | Floyd–Steinberg dithering. The algorithm dithers the image by diffusing the quantization error of the pixel to its neighboring pixels.                                                                                       |

## Used in

[IImageDocument::DitherImage](/fine-reader/engine/api-reference/image-related-objects/imagedocument/ditherimage-method)
