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

# ImageProcessingTools オブジェクトの CropImage メソッド

このメソッドは画像を切り抜きます。

## 構文

```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
);
```

## パラメーター

**Image**

\[in] この変数は、前処理の対象となる [**Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md) オブジェクトを参照します。

**Left**

\[in] 出力画像の左端の座標をピクセル単位で指定します。

**Top**

\[in] 出力画像の上端の座標をピクセル単位で指定します。

**Right**

\[in] 出力画像の右端の座標をピクセル単位で指定します。

**Bottom**

\[in] 出力画像の下端の座標をピクセル単位で指定します。

**Result**

\[out, retval] 出力画像にアクセスするための [**IImage**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md)\*\*\*\*\* ポインター変数へのポインター。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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