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

# EstimateBitmapSize Method of the Image Object

This method estimates the size of memory that is to be allocated for the bitmap returned from the [**IImage::GetPicture**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/image-getpicture.md) method called with the same parameters. Thus, its input parameters are analogous to those of the **IImage::GetPicture**.

## Syntax

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

```cpp C++ theme={null}
HRESULT EstimateBitmapSize(
  ImageModification* Modification,
  int                Mode,
  int*               Result
);
```

## Parameters

**Modification**

\[in] This parameter of the [**ImageModification**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imagemodification.md) type specifies modifications that are performed upon image. 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 an **int** variable that receives the return value of this method. Must not be NULL.

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

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

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