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

# GetPreviewImageSpecificSize Method of the ImageDocument Object

Returns an image preview of the specified size. If the preview hasn't been created yet, it will be created on the call to this property, which may take some time. After the first call, cached image will be returned. However, the preview may be reset on any image modifications, automatic or manual. After modifications, call this method again to create a new preview.

## Syntax

### C++

```cpp theme={null}
HRESULT GetPreviewImageSpecificSize(
  int     width,
  int     height,
  Image** Result
);
```

### C\#

```csharp theme={null}
Image GetPreviewImageSpecificSize( 
  int width,
  int height
);
```

### Visual Basic .NET

```vb theme={null}
Function GetPreviewImageSpecificSize( _
  width As Integer, _
  height As Integer _
) As IImage
```

## Parameters

**width**

\[in] The width of the preview image.

**height**

\[in] The height of the preview image.

**Result**

\[out, retval] A pointer to IImage\* pointer variable that receives the interface pointer of the output [Image](/fine-reader/engine/api-reference/image-related-objects/image) object.

## Return values

This function has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument)

[Image](/fine-reader/engine/api-reference/image-related-objects/image)
