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

# FindBlackSquares Method of the ImageDocument Object

This method finds black squares on the image and returns their locations. Black squares are often used as anchors on fill-in forms.

<Accordion title="See the illustration">
  <img src="https://mintcdn.com/abbyy/6udH-pkk8zkVafYH/images/fine-reader/engine/anchors_pict.gif?s=085bef632220b67fecea72de187f5efe" alt="Anchors_pict" width="308" height="316" data-path="images/fine-reader/engine/anchors_pict.gif" />
</Accordion>

## Syntax

### C++

```cpp theme={null}
HRESULT FindBlackSquares( IRegionsCollection** Result );
```

### C\#

```csharp theme={null}
IRegionsCollection FindBlackSquares();
```

### Visual Basic .NET

```vb theme={null}
Function FindBlackSquares() As IRegionsCollection
```

## Parameters

**Result**

\[out, retval] A pointer to an IRegionsCollection\* pointer variable that receives the interface pointer of the [RegionsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/regionscollection) object containing regions that represent the locations of found black squares.

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