> ## 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 メソッド

> ABBYY FineReader Engine API の Image オブジェクトの EstimateBitmapSize メソッド — 同じパラメーターで呼び出された GetBitmap が返すビットマップのメモリ サイズを見積もります（Windows のみ）。

<Warning>
  このメソッドは、Windows 用 FRE で実装されています
</Warning>

このメソッドは、同じパラメーターで呼び出した [IImage::GetBitmap](/ja/fine-reader/engine/api-reference/image-related-objects/image/getbitmap-method) メソッドが返すビットマップ用に割り当てられるメモリー サイズを見積もります。したがって、入力パラメーターは GetBitmap のものと同じです。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

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

### C\#

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

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

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

<div id="parameters">
  ## パラメーター
</div>

Modification

\[in] [ImageModification](/ja/fine-reader/engine/api-reference/image-related-objects/imagemodification) 型のこのパラメーターは、画像に対して適用される変更を指定します。これにはクリッピング矩形が含まれる場合があり、その場合は画像の指定された部分だけが渡されます。また、伸縮率や、画像の一部を色で塗りつぶすための塗りつぶし矩形などを含めることもできます。このパラメーターには 0 を指定することもでき、その場合は画像ページに対して変更は行われず、そのまま渡されます。

Result

\[out, retval] このメソッドの戻り値を受け取る int 型変数へのポインター。

<div id="return-values">
  ## 戻り値
</div>

* Windows では、このメソッド固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準の戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。
* Linux および macOS では、このメソッドは E\_NOTIMPL を返します。詳細については、[ABBYY FineReader Engine 関数の標準の戻り値](/ja/fine-reader/engine/api-reference/return-codes)を参照してください。

<div id="see-also">
  ## 関連項目
</div>

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

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