SaveICCProfile Example for Visual C++ 5.0 and later

   ILEADRasterIO        *pRasterIO = NULL; 
   ILEADRasterVariant   *pData = NULL; 
   int nRet; 

   CoCreateInstance(CLSID_LEADRasterVariant,NULL, CLSCTX_ALL, IID_ILEADRasterVariant,(void**)&pData); 
   CoCreateInstance(CLSID_LEADRasterIO,NULL, CLSCTX_ALL, IID_ILEADRasterIO,(void**)&pRasterIO); 

   nRet = pRasterIO->LoadICCProfile (TEXT("c:\\dst_rgb_image.tif"), pData, 1); 
   nRet = pRasterIO->SaveICCProfile (TEXT("c:\\image.tif"), pData, 1); 

   pRasterIO->Release();
   pData->Release();