BinaryFilter example for C++ Builder
This example does omni-directional erosion of black objects and repaints the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
LEADRasterView1->Raster->UnlockSupport (L_SUPPORT_DOCUMENT, AnsiToOLESTR("TestKey"));
pRasterProc->BinaryFilter (LEADRasterView1->Raster, BFLT_EROSION_OMNI);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release ( );