> ## 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.

# DitherImage Method of the ImageDocument Object

This method dithers the image using either Floyd–Steinberg, or Bayer (ordered) dithering algorithm.

## Syntax

### C++

```cpp theme={null}
HRESULT DitherImage( DitheringMethodEnum Method );
```

### C\#

```csharp theme={null}
void DitherImage( DitheringMethodEnum Method );
```

### Visual Basic .NET

```vb theme={null}
Sub DitherImage(Method As DitheringMethodEnum)
```

## Parameters

*Method*

\[in] This variable of the [DitheringMethodEnum](/fine-reader/engine/api-reference/enumerations/ditheringmethodenum) type specifies the dithering algorithm to be used.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument)
