Available in the LEADTOOLS Imaging toolkit.
StretchIntensity example for C++ 4.0 and later
This example stretches the intensity and redisplays the image.
m_Lead1.StretchIntensity(); m_Lead1.ForceRepaint();