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

# ImageProcessingTools オブジェクトの DetectRequiredRotation メソッド

このメソッドは、画像を通常の (正立した) 向きに戻すために必要な回転を検出します。検出した回転を適用するには、[**RotateImageByRotationType**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-rotateimagebyrotationtype.md) メソッドを使用します。

## 構文

```vb Visual Basic .NET theme={null}
Function DetectRequiredRotation( _
  Image As    Image, _
  Language As Language, _
) As RotationTypeEnum
```

```cpp C++ theme={null}
HRESULT DetectRequiredRotation(
  IImage*           Image,
  ILanguage*        Language,
  RotationTypeEnum* Result
);
```

## パラメーター

**Image**

\[in] 処理対象の [**Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.md) オブジェクトを参照します。

**Language**

\[in] 画像内のテキストの言語を指定する [**Language**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/language.md) オブジェクトを参照します。

**Result**

\[out, retval] 画像を通常の向きに戻すために適用する回転を指定する [**RotationTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rotationtypeenum.md) 定数を返します。

## 戻り値

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

## 関連項目

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

[**ImageProcessingTools::DetectOrientationByText**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-detectorientationbytext.md)
