Nicomsoft OCR: Developer's Guide


Img_SaveBlocks


Syntax

C++:int Img_SaveBlocks(HIMG ImgObj, UNICODECHAR* FileName)
C#:int Img_SaveBlocks(int ImgObj, string FileName)
Visual Basic:Function Img_SaveBlocks(ByVal ImgObj As Integer, ByVal FileName As String) As Integer
Java:int Img_SaveBlocks(HIMG ImgObj, String FileName)
Delphi:function Img_SaveBlocks(ImgObj:HIMG; FileName:PWCHAR):integer


Description

Exports blocks (zones) to a file. After that, the file with zones data can be imported with the Img_LoadBlocks function.


Parameters

ImgObj [IN] – the Image object.
FileName [IN] – a Unicode, null-terminated string that contains the full path and filename of a file that will contain blocks data. If an empty string is specified, a special inner-memory buffer will be used as a destination; this mode is good for saving/loading blocks without using any files.


Return value

Zero if success, otherwise an error code.


Remarks

See the description of the Img_LoadBlocks function for more information about using the Img_LoadBlocks and Img_SaveBlocks functions.


Example

See the sample projects in the NSOCR SDK.