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

# Image オブジェクトの EstimateBitmapSize メソッド

このメソッドは、同じパラメーターで [**IImage::GetPicture**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image-getpicture.md) メソッドを呼び出した場合に返されるビットマップに割り当てられるメモリのサイズを見積もります。そのため、このメソッドの入力パラメーターは **IImage::GetPicture** メソッドの入力パラメーターと同様です。

## 構文

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

## パラメーター

**Modification**

\[in] [**ImageModification**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagemodification.md) 型のパラメーターで、画像に対して実行する変更を指定します。このパラメーターには 0 を指定できます。その場合、画像ページは変更されず、そのままの状態で渡されます。

**Mode**

\[in] このパラメーターには、[**GetPictureFlags**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/getpictureflags.md) フラグの任意の組み合わせ、または 0 を指定できます。

**Result**

\[out, retval] このメソッドの戻り値を受け取る **int** 変数へのポインター。NULL は指定できません。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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

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