Available in the LEADTOOLS Imaging toolkit.
HistoEqualize example for Visual Basic
Note: Also works with Access 95 and 97.
This example equalizes the bitmap's histogram and repaints the image.
LEAD1.HistoEqualize YUV_SPACE