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

# CorrectShadowsAndHighlights Method of the ImageDocument Object

This method corrects excessive shadows and highlighting on the image to improve recognition quality. It is designed for use with photographs only.

## Syntax

### C++

```cpp theme={null}
HRESULT CorrectShadowsAndHighlights();
```

### C\#

```csharp theme={null}
void CorrectShadowsAndHighlights();
```

### Visual Basic .NET

```vb theme={null}
Sub CorrectShadowsAndHighlights()
```

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