Available in the LEADTOOLS Imaging toolkit.
HistoEqualize example for Visual Basic
This example equalizes the bitmap's histogram and repaints the image.
LEAD1.HistoEqualize YUV_SPACE