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.



Pointer to an image of type IMG.


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
Go to Top