GrayscaleExt example for Visual C++ 5 and later

   ILEADRasterProcess *pRasterProc=NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
   pRasterProc->GrayscaleExt (m_RasterView.GetRaster (), 300, 590, 110);
   pRasterProc->Release();