Grayscale example for C++ Builder
This example converts the bitmap to 12-bit grayscale.
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Grayscale (LEADRasterView1->Raster, 12); //Grayscale image to 12-bit
pRasterProc-> Release( );