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

<Warning>
  This method is implemented in FRE for Windows
</Warning>

This method estimates the size of memory that is to be allocated for the bitmap returned from the [IImage::GetBitmap](/fine-reader/engine/api-reference/image-related-objects/image/getbitmap-method) method called with the same parameters. Thus, its input parameters are analogous to those of GetBitmap.

## Syntax

### C++

```cpp theme={null}
HRESULT EstimateBitmapSize(
  IImageModification* Modification,
  int*                Result
);
```

### C\#

```csharp theme={null}
int EstimateBitmapSize( IImageModification Modification );
```

### Visual Basic .NET

```vb theme={null}
Function EstimateBitmapSize(Modification As IImageModification) As Integer
```

## Parameters

Modification

\[in] This parameter of the [ImageModification](/fine-reader/engine/api-reference/image-related-objects/imagemodification) type specifies 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."

Result

\[out, retval] A pointer to int variable that receives the return value of this method.

## Return values

* In Windows, this method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).
* In Linux and macOS, this method returns E\_NOTIMPL. See details in the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[ImageModification](/fine-reader/engine/api-reference/image-related-objects/imagemodification)

[IImage::GetBitmap](/fine-reader/engine/api-reference/image-related-objects/image/getbitmap-method)
