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

# SetImage Method of the PageDefinition Object

This method sets the [**IPageDefinition::Image**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pagedefinition.md#image) property of the current page definition.

## Syntax

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

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

## Parameters

**ImagePath**

\[in] This variable specifies the path to the file with the image which is to be used as the template image for the page definition.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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