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

このメソッドは、指定したビットマップを [**Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md) オブジェクトに変換します。

## 構文

```cpp C++ theme={null}
HRESULT BitmapToImage(
  __int64   HBitmap,
  int       Resolution,
  IImage**  Result
);
```

```csharp C# theme={null}
Image BitmapToImage(
  Int64  HBitmap ,
  int    Resolution
);
```

```vb Visual Basic .NET theme={null}
Function BitmapToImage( _
  HBitmap As Int64, _
  Resolution As Integer _
) As Image
```

## パラメーター

**HBitmap**

\[in] この変数には、GDI オブジェクト (HBITMAP) のハンドルが格納されます。ハンドルは [**\_\_int64**](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md) として渡されます。このハンドルは、ABBYY FlexiCapture SDK を実行しているプロセスからアクセス可能である必要があります。

**Resolution**

\[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)
