Posterize example for C++ Builder
This example applies a six-color poster effect and redisplays the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Posterize (LEADRasterView1->Raster, 6);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );