Halftone example for C++ Builder
This example halftone the bitmap with a horizontal pattern and repaints the image.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Halftone (LEADRasterView1->Raster, HALFTONE_PRINT, 0);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );