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

# ClearReplaceWhitePixelsRegions Method of the ImageModification Object

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

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

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

White pixels on the image inside the "replace white pixels" regions will be replaced with the pixels of the specified color when [IImageDocument::Modify](/fine-reader/engine/api-reference/image-related-objects/imagedocument/modify-method) method is applied. This operation is performed on the [black-and-white](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#black-and-white) image plane but results will be applied to the [gray](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#gray) and [color](/fine-reader/engine/guided-tour/advanced-techniques/working-with-images#color) image planes too.

## See also

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

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