Nicomsoft OCR: Developer's Guide


Img_Create


Syntax

C++:int Img_Create(HOCR OcrObj, HIMG* ImgObj)
C#:int Img_Create(int OcrObj, out int ImgObj)
Visual Basic:Function Img_Create(ByVal OcrObj As Integer, ByRef ImgObj As Integer) As Integer
Java:int Img_Create(HOCR OcrObj, HIMG ImgObj)
Delphi:function Img_Create(OcrObj:HOCR; out ImgObj:HIMG):integer


Description

Creates a new Image object. The main purpose of the Image object is to handle an image that needs to be OCR’ed.


Parameters

OcrObj [IN] – the OCR object that will be used to perform OCR in future.
ImgObj [OUT] – the variable that will get the new Image object.


Return value

Zero if success, otherwise an error code.


Remarks

For more details, see the OCR Objects section.


Example

See the sample code for the Engine_Initialize function.