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

# FRPage オブジェクトの DetectResolution メソッド

> ABBYY FineReader Engine API における FRPage オブジェクトの DetectResolution メソッド — 指定した範囲から認識に最適な解像度を推定します。ページの解像度は変更されません（変更するには IImageDocument.ChangeResolution を使用してください）。

このメソッドは、指定された範囲内で最適な解像度を選択します。認識に最適な解像度を見積もるために使用します。画像にテキストがほとんど含まれていない、またはまったく含まれていない場合、このメソッドの結果は信頼できないことがあります。

このメソッドでは、ページ画像の解像度は変更されません。選択された解像度に変更するには、[IImageDocument::ChangeResolution](/ja/fine-reader/engine/api-reference/image-related-objects/imagedocument/changeresolution-method) メソッドを使用してください。

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

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

```cpp theme={null}
HRESULT DetectResolution(
  IObjectsExtractionParams* ExtractionParams,
  int                       MinResolution,
  int                       MaxResolution,
  int*                      NewResolution
);
```

### C\#

```csharp theme={null}
void DetectResolution(
  IObjectsExtractionParams ExtractionParams,
  int                      MinResolution,
  int                      MaxResolution,
  out int                  NewResolution
);
```

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

```vb theme={null}
Sub DetectResolution( _
  ExtractionParams As IObjectsExtractionParams, _
  MinResolution As Integer, _
  MaxResolution As Integer, _
  ByRef NewResolution As Integer
)
```

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

ExtractionParams

\[in] オブジェクト抽出のパラメーターを格納する [ObjectsExtractionParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/objectsextractionparams) オブジェクトを参照します。このパラメーターには 0 を指定することもできます。その場合、オブジェクトはデフォルトのパラメーターで抽出されます。[プロファイル](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) がロードされている場合は、そのプロファイルで設定されたパラメーターが使用されます。

MinResolution

\[in] 選択可能な最小解像度を指定します。

MaxResolution

\[in] 選択可能な最大解像度を指定します。

NewResolution

\[out] ページ画像の最適な解像度を受け取ります。ABBYY FineReader Engine が指定された範囲 (MinResolution ～ MaxResolution) から解像度を選択できない場合は、-1 が返されます。

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

このメソッド固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

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

[FRPage](/ja/fine-reader/engine/api-reference/document-related-objects/frpage)

[IPagePreprocessingParams::OverwriteResolutionMode](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams#overwriteresolutionmode)

[IImageDocument::ChangeResolution](/ja/fine-reader/engine/api-reference/image-related-objects/imagedocument/changeresolution-method)

[プロファイルの操作](/ja/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)
