Nicomsoft OCR: Developer's Guide


Blk_SetType


Syntax

C++:int Blk_SetType(HBLK BlkObj, int BlockType)
C#:int Blk_SetType(int BlkObj, int BlockType)
Visual Basic:Function Blk_SetType(ByVal BlkObj As Integer, ByVal BlockType As Integer) As Integer
Java:int Blk_SetType(HBLK BlkObj, int BlockType)
Delphi:function Blk_SetType(BlkObj:HBLK; BlockType:integer):integer


Description

Sets the type for the specified Block object. The block type defines which kind of information is contained in the image area associated with the zone.


Parameters

BlkObj [IN] – the Block object.
BlockType [IN] – the new zone type; see the BT_XXXXX constants for possible values.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

See the sample code for the Blk_SetRect function.