Available in the LEADTOOLS Imaging toolkit.
IntensityDetect example for Visual J++
This example filters the bitmap to get the lightest intensities and repaints the image.
LEAD1.IntensityDetect( (short) 200, (short) 255 ); LEAD1.ForceRepaint();