Chinese Simplified (简体中文)

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

C++

HRESULT FindBaseCellFromPoint(
   int  X,
   int  Y,
   int* BaseX,
   int* BaseY
);
    

C#

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 _
)
    

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

TableBlock

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.