Average example for C++ Builder
This example applies an average filter with a 3x3 neighborhood and redisplays the bitmap.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Average (LEADRasterView1->Raster, 3);
LEADRasterView1->ForceRepaint ( );
pRasterProc-> Release ( );