Available in the LEADTOOLS Imaging toolkit.
Invert example for C++ 4.0 and later
This example inverts the bitmap's colors and repaints the image.
m_Lead1.Invert(); m_Lead1.ForceRepaint();