MaxFilter example for C++ Builder
This example erodes dark objects and repaints the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->MaxFilter (LEADRasterView1->Raster, 3);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );