IntensityDetect example for C++ Builder
This example filters the bitmap to get the lightest intensities and repaints the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->IntensityDetect (LEADRasterView1->Raster, 200, 255);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );