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.
HRESULT FindBaseCellFromPoint( int X, int Y, int* BaseX, int* BaseY );
void FindBaseCellFromPoint( int X, int Y, out int BaseX, out int BaseY );
Visual Basic .NET
Sub FindBaseCellFromPoint( _ X As Integer, _ Y As Integer, _ ByRef BaseX As Integer, _ ByRef BaseY As Integer _ )
- [in] This variable contains the horizontal coordinate of the pixel relative to the image.
- [in] This variable contains the vertical coordinate of the pixel relative to the image.
- [in,out] The horizontal coordinate of the cell in the base grid is returned in this variable.
- [in,out] The vertical coordinate of the cell in the base grid is returned in this variable.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.