> ## 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 オブジェクトの RotateImageByRotationType メソッド

このメソッドは、画像を事前定義の角度 (時計回りに 90 度、反時計回りに 90 度、または 180 度回転して上下反転) で回転します。画像を正しい向きに直すために必要な回転を取得するには、[**DetectRequiredRotation**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-detectrequiredrotation.md) メソッドを使用できます。

## 構文

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

```cpp C++ theme={null}
HRESULT RotateImageByRotationType(
  IImage*          Image,
  RotationTypeEnum Rotation,
  IImage**         Result
);
```

## パラメーター

**Image**

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

**Rotation**

\[in] 事前定義された回転角度のいずれかを指定します。詳細については、[**RotationTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rotationtypeenum.md) 定数の説明を参照してください。

**Result**

\[out, retval] 出力画像へのアクセスを提供する [**IImage**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/image.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::DetectRequiredRotation**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageprocessingtools-detectrequiredrotation.md)
