Available in the LEADTOOLS Imaging toolkit.
GammaCorrect example for Visual J++
This example applies a 2.2 gamma correction and repaints the image.
LEAD1.GammaCorrect( (short) 220 ); LEAD1.ForceRepaint();