SimpleOCR:SDK Functions – InvertImg

You are here:
< All Topics

int InvertImg(IMG * img)

Inverts an image (black pixels becomes white and white pixels becomes black)

Return Value

If the function fails a nonzero error code is returned.

Parameters

img

Pointer to an image of type IMG.

Example

IMG *img; 

// Create an IMG 
... 

if (InvertImg(img)) 
{
//error processing 
...
}
Previous SimpleOCR:SDK Functions – InsertImage
Next SimpleOCR:SDK Functions – LoadImg
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