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

# ClearInvertRegions Method of the ImageModification Object

This method clears the internal array of inversion regions. By default, the internal array of inversion regions is empty, and this method may be called to remove all the inversion regions that were added previously. To add a new region to this internal array call the [IImageModification::AddInvertRegion](/fine-reader/engine/api-reference/image-related-objects/imagemodification/addinvertregion-method) method.

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

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

## Remarks

Colors of the image inside the inversion regions will be inverted when [IImageDocument::Modify](/fine-reader/engine/api-reference/image-related-objects/imagedocument/modify-method) method is applied.

## See also

[ImageModification](/fine-reader/engine/api-reference/image-related-objects/imagemodification)

[AddInvertRegion](/fine-reader/engine/api-reference/image-related-objects/imagemodification/addinvertregion-method)
