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

# ChangeResolution Method of the ImageDocument Object

This method changes the resolution of the image. The size of the image in pixels remains unchanged.

## Syntax

### C++

```cpp theme={null}
HRESULT ChangeResolution( int NewResolution );
```

### C\#

```csharp theme={null}
void ChangeResolution( int NewResolution );
```

### Visual Basic .NET

```vb theme={null}
Sub ChangeResolution(NewResolution As Integer)
```

## Parameters

**NewResolution**

\[in] Contains the new value for the resolution. Must be in range from 50 to 3200 dpi.

## Return values

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

## Remarks

You can use the [DetectResolution](/fine-reader/engine/api-reference/document-related-objects/frpage/detectresolution-method) method of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object to choose the best resolution for the image from given range.

Image resolution can also be changed during preprocessing. See the [OverwriteResolutionMode](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams#overwriteresolutionmode) and [ResolutionToOverwrite](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams#resolutiontooverwrite) properties of the [PagePreprocessingParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams) object.

## See also

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