ConvertCoordinates Method of the ImageDocument Object

This method converts coordinates of a pixel defined on an image plane to coordinates defined on another image plane. Conversion between all possible pairs of image planes is permitted.

Syntax

Visual Basic .NET

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

C++

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

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 FlexiCapture SDK functions.

Remarks

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

See also

ImageTypeEnum

15.08.2023 13:19:30

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.