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

# CropImage Method of the ImageDocument Object

This method finds the edges of a document on the image and then crops the image. We recommend that you call this method at the beginning of image preprocessing, before making any other modifications.

<Note>
  This method does not work with black-and-white image documents (those for which [ImageColorType](/fine-reader/engine/api-reference/image-related-objects/imagedocument#imagecolortype) is ICT\_BlackWhite).
</Note>

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

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