Chinese Simplified (简体中文)

ConvertCoordinates Method of the CoordinatesConverter Object

This method converts coordinates of a pixel between different modification states or image planes of the ImageDocument.

Syntax

C++

HRESULT ConvertCoordinates(
  ImageTypeEnum FromPage,
  ImageTypeEnum ToPage,
  int*          X,
  int*          Y
);
    

C#

void ConvertCoordinates(
  ImageTypeEnum FromPage,
  ImageTypeEnum ToPage,
  out int       X,
  out int       Y
);
    

Visual Basic .NET

Sub ConvertCoordinates( _
  FromPage As ImageTypeEnum, _
  ToPage As ImageTypeEnum, _
  ByRef X As Integer, _
  ByRef Y As Integer _
)
    

Parameters

FromPage
[in] This variable of the ImageTypeEnum type specifies the image page from which the coordinates of pixel are to be converted.
ToPage
[in] This variable of the ImageTypeEnum type specifies the image page to which the coordinates of pixel are to be converted.
X
[in, out] This variable stores the horizontal coordinate of the pixel relative to the source image page before the method call, and the horizontal coordinate of the pixel relative to the target image page after the method call.
Y
[in, out] This variable stores the vertical coordinate of the pixel relative to the source image page before the method call, and the vertical coordinate of the pixel relative to the target image page after the method call.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The coordinates of pixels on the black-and-white image page and the color image page are the same.

See also

ImageTypeEnum

CoordinatesConverter

ImageDocument

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.