FindBaseCellFromPoint Method of the TableBlock Object
This method allows you to find cell position in the base grid for a given pixel.
Cell coordinates in a base grid are the coordinates of its left top corner in that grid. By the base grid here we assume the grid formed by table borders and separators. Each vertical separator increments the horizontal coordinate by one, and each horizontal separator increments the vertical coordinate by one. Coordinate axes are oriented from left to right and from top to bottom. Pixel coordinates relative to the image must lay inside the table block's region; otherwise, the base coordinate value returned will be -1.
Syntax
HRESULT FindBaseCellFromPoint( int X, int Y, int* BaseX, int* BaseY );
Parameters
- X
- [in] This variable contains the horizontal coordinate of the pixel relative to the image.
- Y
- [in] This variable contains the vertical coordinate of the pixel relative to the image.
- BaseX
- [in,out] The horizontal coordinate of the cell in the base grid is returned in this variable.
- BaseY
- [in,out] The vertical coordinate of the cell in the base grid is returned in this variable.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
See also
7/3/2024 8:50:25 AM