Nicomsoft OCR: Developer's Guide


Img_LoadFile


Syntax

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


Description

Loads an image file to the Image object. The free, open-source FreeImage library is used to support a wide range of image formats. Please refer to its documentation for a full list of supported image formats.


Parameters

ImgObj [IN] – the Image object.
FileName [IN] – a Unicode, null-terminated string that contains the full path and filename of the image file to load.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

See the sample code for the Engine_InitializeAdvanced function.