| Nicomsoft OCR: Developer's Guide |
| C++: | int Blk_GetTextRect(HBLK BlkObj, int LineIndex, int WordIndex, int* Xpos, int* Ypos, int* Width, int* Height) |
| C#: | int Blk_GetTextRect(int BlkObj, int LineIndex, int WordIndex, out int Xpos, out int Ypos, out int Width, out int Height) |
| Visual Basic: | Function Blk_GetTextRect(ByVal BlkObj As Integer, ByVal LineIndex As Integer, ByVal WordIndex As Integer, ByRef Xpos As Integer, ByRef Ypos As Integer, ByRef Width As Integer, ByRef Height As Integer) As Integer |
| Java: | int Blk_GetTextRect(HBLK BlkObj, int LineIndex, int WordIndex, NSInt Xpos, NSInt Ypos, NSInt Width, NSInt Height) |
| Delphi: | function Blk_GetTextRect(BlkObj:HBLK; LineIndex:integer; WordIndex:integer; out Xpos:integer; out Ypos:integer; out Width:integer; out Height:integer):integer |
| BlkObj [IN] – the Block object. You can also specify the Image object if you want to work with the global list of text lines for the entire image. | |
| LineIndex [IN] – the index of the text line; 0 – the first line. Specify -1 to get the rectangle for the entire block; you cannot use -1 if ImgObj is used instead of BlkObj. | |
| WordIndex [IN] – the index of the word in the specified text line; 0 – the first word. Specify -1 to get the rectangle for the entire text line. | |
| Xpos [OUT] – the address of the variable that will get the X coordinate of the top-left corner of the rectangle, in pixels. | |
| Ypos [OUT] – the address of the variable that will get the Y coordinate of the top-left corner of the rectangle, in pixels. | |
| Width [OUT] – the address of the variable that will get the width of the rectangle, in pixels. | |
| Height [OUT] – the address of the variable that will get the height of the rectangle, in pixels. |