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
}
Previous SimpleOCR:SDK Functions – InvertImg
Next SimpleOCR:SDK Functions – LoadMultipleImg
Table of Contents
Contact Us for FREE Consultation on Your OCR Project

Share This Story, Choose Your Platform!

OCR Guide
Brands
Compare most popular choices in one cozy and extensive table
Languages
Applications
Go to Top