ConvertToColoredGray example for Visual C++ 5 and later

   short RedFact = 300;
   short GreenFact = 590;
   short BlueFact = 110;
   short RedGrayFact = 500;
   short GreenGrayFact = 300;
   short BlueGrayFact = 200;
   ILEADRasterProcess *pRasterProc=NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
   pRasterProc->ConvertToColoredGray (m_RasterView.GetRaster (), RedFact, GreenFact, BlueFact, RedGrayFact, GreenGrayFact, BlueGrayFact);
   pRasterProc->Release();