Available in the LEADTOOLS Imaging toolkit.
HistoContrast example for Visual J++
This example applies a histogram contrast to the bitmap and repaints the image.
LEAD1.HistoContrast( (short) 300 ); LEAD1.ForceRepaint();