Nicomsoft OCR: Developer's Guide


Img_GetBlock


Syntax

C++:int Img_GetBlock(HIMG ImgObj, int BlockIndex, HBLK* BlkObj)
C#:int Img_GetBlock(int ImgObj, int BlockIndex, out int BlkObj)
Visual Basic:Function Img_GetBlock(ByVal ImgObj As Integer, ByVal BlockIndex As Integer, ByRef BlkObj As Integer) As Integer
Java:int Img_GetBlock(HIMG ImgObj, int BlockIndex, HBLK BlkObj)
Delphi:function Img_GetBlock(ImgObj:HIMG; BlockIndex:integer; out BlkObj:HBLK):integer


Description

Retrieves the specified Block object from the list of Block objects assigned to the specified Image object. Use the Img_GetBlockCnt function to get the total number of Block objects associated with the Image object.


Parameters

ImgObj [IN] – the Image object.
BlockIndex [IN] – the index of the Block object in the list of Block objects assigned to the specified Image object; 0 – the first block.
BlkObj [OUT] – the variable that will get the specified Block object.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

See the sample code for the Img_GetBlockCnt function.