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

# BitmapToImage Method of the ImageProcessingTools Object

This method converts the specified bitmap to the [**Image**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image.md) object.

## Syntax

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

## Parameters

**HBitmap**

\[in] This variable contains the handle of the GDI object (HBITMAP). The handle is passed as [**\_\_int64**](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md). This handle should be available to the process that operates ABBYY FlexiCapture SDK.

**Resolution**

\[in] Specifies resolution of the bitmap image.

**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 internal image plane.

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