SimpleOCR:SDK Functions – LoadImg
IMG * LoadImg(const char * filename)
Loads an image from a TIFF file.
Return Value
A pointer to the loaded image or NULL if the function fails.
Parameters
filename
TIFF file name
Comments
When you don’t need the loaded image anymore, you have to free it by calling the FreeImg function. If you load a multiple image TIFF file, only the first image stored in the file is loaded. You have to use LoadMultipleImg for handling multiple image files.
Example
IMG *img;
img=LoadImg("foo.tif");
if (img==NULL)
{
// error processing
}