Available in the LEADTOOLS Imaging toolkit.
StretchIntensity example for Visual J++
This example stretches the intensity and redisplays the image.
LEAD1.StretchIntensity(); LEAD1.ForceRepaint();