Available in the LEADTOOLS Imaging toolkit.
IntensityDetect example for C++ 4.0 and later
This example filters the bitmap to get the lightest intensities and repaints the image.
m_Lead1.IntensityDetect(200, 255); m_Lead1.ForceRepaint();