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

# PageDefinition オブジェクトの SetImage メソッド

このメソッドは、現在のページ定義の [**IPageDefinition::Image**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/pagedefinition.md#image) プロパティを設定します。

## 構文

```vb Visual Basic .NET theme={null}
Sub SetImage(ImagePath As String)
```

```cpp C++ theme={null}
HRESULT SetImage(
  BSTR ImagePath
);
```

## パラメーター

**ImagePath**

\[in] この変数には、ページ定義のテンプレート画像として使用する画像ファイルのパスを指定します。

## 戻り値

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

## 関連項目

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