Available in the LEADTOOLS Imaging toolkit.
HistoContrast example for C++ 4.0 and later
This example applies a histogram contrast to the bitmap and repaints the image.
m_Lead1.HistoContrast(300); m_Lead1.ForceRepaint();