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

# GetPicture Method of the Image Object

This method returns a part of image in the Device Independent Bitmap (DIB) format. The palette, where 0 is the black color, is used for gray and black-and-white images.

The method returns the DIB as the [**Handle**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/handle.md) object. This object manages memory allocation and releases resources when they are no longer in use.

## Syntax

```cpp C++ theme={null}
HRESULT GetBitmap(
  IImageModification* Modification,
  int                 Mode,
  IHandle**           Result
);
```

```csharp C# theme={null}
Handle GetBitmap(
  ImageModification Modification,
  int               Mode
);
```

```vb Visual Basic .NET theme={null}
Function GetPicture( _
  Modification As ImageModification, _
  Mode As Integer _
) As Handle
```

## Parameters

**Modification**

\[in] This parameter of [**ImageModification**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagemodification.md) type defines modifications that are performed upon image. It may include clipping rectangles, in which case only specified parts of the image are passed, stretch ratio, painting rectangles for filling up parts of the image with color and so on. This parameter may be 0, and in this case no modifications will be performed upon the image page and it will be passed "as is".

**Mode**

\[in] This parameter may be any combination of [**GetPictureFlags**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/getpictureflags.md) flags or contain 0.

**Result**

\[out, retval] A pointer to [**IHandle\***](https://docs.abbyy.com/flexi-capture/sdk/api-reference/handle.md) pointer variable that receives interface pointer of the resulting Handle object representing the handle to the associated bitmap.

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

## Remarks

This method does not work if the **Engine** object is created using the [**OutprocLoader**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/outprocloader.md) object, or if it is created using the [**InprocLoader**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/inprocloader.md) object and you are writing managed code, for example, in C#.

## See also

[**IImage::EstimateBitmapSize**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image-estimatebitmapsize.md)
