Available in the LEADTOOLS Imaging toolkit.
GammaCorrect example for C++ 4.0 and later
This example applies a 2.2 gamma correction and repaints the image.
m_Lead1.GammaCorrect(220); m_Lead1.ForceRepaint();