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

このメソッドは、指定された領域を指定の色で塗りつぶします。

## 構文

```vb Visual Basic .NET theme={null}
Function FillRegionWithColor( _
  Image As Image, _
  Region As Region, _
  Color As Integer _
) As Image
```

```cpp C++ theme={null}
HRESULT FillRegionWithColor(
  IImage*  Image,
  IRegion* Region,
  int      Color,
  IImage** Result
);
```

## パラメーター

**Image**

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

**Region**

\[in] 色で塗りつぶす領域を指定します。[**Region**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region.md) オブジェクトを参照します。

**Color**

\[in] 画像上の領域の塗りつぶしに使用する色を指定します。**Integer** 値は、RGB の 3 つの値から次の式で算出されます：(*red* *value*) + (256 x *green* *value*) + (65536 x *blue* *value*)。ここで、*red* *value* は 3 つの値の 1 番目の成分、*green* *value* は 2 番目の成分、*blue* *value* は 3 番目の成分です。

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