How Can We Help?

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.

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
}
Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top