Available in the LEADTOOLS Imaging toolkit.
Invert example for Visual J++
This example inverts the bitmap's colors and repaints the image.
LEAD1.Invert(); LEAD1.ForceRepaint();