SimpleOCR:SDK Functions – LoadImg

You are here:
< All Topics

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.



TIFF file name


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.


IMG *img; 

if (img==NULL) 
// error processing
Previous SimpleOCR:SDK Functions – InvertImg
Next SimpleOCR:SDK Functions – LoadMultipleImg
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top