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++

HRESULT ChangeResolution( int NewResolution );
    

C#

void ChangeResolution( int NewResolution );
    

Visual Basic .NET

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.

Remarks

You can use the DetectResolution method of the FRPage object to choose the best resolution for the image from given range.

Image resolution can also be changed when opening images if the OverwriteResolution or AutoOverwriteResolution properties of the PrepareImageMode object are set to TRUE. In this case, the new resolution will be used for image preprocessing (i.e., for binarization, deskewing, etc.). The ChangeResolution method allows you to change the resolution of the open image.

See also

ImageDocument

PrepareImageMode

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.