How Can We Help?

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

Title

Go to Top