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

This method crops an image.

## Syntax

```vb Visual Basic .NET theme={null}
Function CropImage( _
  Image As Image, _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer, _
) As Image
```

```cpp C++ theme={null}
HRESULT CropImage(
  IImage*  Image,
  int      Left,
  int      Top,
  int      Right,
  int      Bottom,
  IImage** Result
);
```

## Parameters

**Image**

\[in] This variable refers to the [**Image**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image.md) object which is to be preprocessed.

**Left**

\[in] Specifies the coordinate of the left border of the resulting image in pixels.

**Top**

\[in] Specifies the coordinate of the top border of the resulting image in pixels.

**Right**

\[in] Specifies the coordinate of the right border of the resulting image in pixels.

**Bottom**

\[in] Specifies the coordinate of the bottom border of the resulting image in pixels.

**Result**

\[out, retval] A pointer to the [**IImage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image.md)**\*** pointer variable that provides access to the resulting image.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**ImageProcessingTools**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingtools.md)
