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

このメソッドは、さまざまな種類の写真向けに設計された事前定義の設定を使用して、写真の前処理を行います。

> [!WARNING]
>
> このメソッドはカラー画像にのみ使用できます。

## 構文

```vb Visual Basic .NET theme={null}
Function PreprocessCameraImage( _
  Image As Image, _
  Preset As PreprocessCameraImagePresetEnum, _
) As Image
```

```cpp C++ theme={null}
HRESULT PreprocessCameraImage(
  IImage*                         Image,
  PreprocessCameraImagePresetEnum Preset,
  IImage**                        Result
);
```

## パラメーター

**Image**

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

**Preset**

\[in] 使用可能なプリセットのいずれかを指定します。詳細については、[**PreprocessCameraImagePresetEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/preprocesscameraimagepresetenum.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)
