> ## 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 オブジェクトの ConvertToGray メソッド

このメソッドは、画像をグレーに変換します。

## 構文

```vb Visual Basic .NET theme={null}
Function ConvertToGray(Image As Image) As Image
```

```cpp C++ theme={null}
HRESULT ConvertToGray(
  IImage*  Image,
  IImage** Result
);
```

## パラメーター

**Image**

\[in] 変換対象の [**Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md) オブジェクトを参照する変数です。

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