Available in the LEADTOOLS Imaging toolkit.
PaintGamma example for C++ 4.0 and later
This example increases the gamma correction for painting images.
m_Lead1.SetPaintGamma(m_Lead1.GetPaintGamma() + 100); m_Lead1.ForceRepaint();