Available in the LEADTOOLS Imaging toolkit.
HistoContrast example for Visual Basic
Note: Also works with Access 95 and 97.
This example applies a histogram contrast to the bitmap and repaints the image.
Lead1.HistoContrast 300 Lead1.ForceRepaint