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

# AddInvertRegion Method of the ImageModification Object

This method adds a new inversion region to the internal array of inversion regions of the [ImageModification](/fine-reader/engine/api-reference/image-related-objects/imagemodification) object. To remove all the inversion regions previously added call the [IImageModification::ClearInvertRegions](/fine-reader/engine/api-reference/image-related-objects/imagemodification/clearinvertregions-method) method. If the modification must be applied to a single [color](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#color) (or [gray](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#gray)) plane of the image, coordinates of the region should be specified on this color (gray) plane. If the modification must be to the whole ImageModification, the coordinates should be specified on the deskewed [black-and-white](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white) image plane.

## Syntax

### C++

```cpp theme={null}
HRESULT AddInvertRegion( IRegion* Region );
```

### C\#

```csharp theme={null}
void AddInvertRegion( IRegion Region );
```

### Visual Basic .NET

```vb theme={null}
Sub AddInvertRegion(Region As IRegion)
```

## Parameters

Region

\[in] This parameter of the [Region](/fine-reader/engine/api-reference/supplementary-objects-and-methods/region) type specifies the inversion region to be added.

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

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