BalanceColors example for Visual C++ 5 and later
float RedFactToRed = 0.25f;
float RedFactToGreen = 0.5f;
float RedFactToBlue = 0.25f;
float GreenFactToRed = 0.3f;
float GreenFactToGreen = 0.4f;
float GreenFactToBlue = 0.3f;
float BlueFactToRed = 0.1f;
float BlueFactToGreen = 0.6f;
float BlueFactToBlue = 0.3f;
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->BalanceColors (m_RasterView.GetRaster (), RedFactToRed, RedFactToGreen, RedFactToBlue, GreenFactToRed, GreenFactToGreen, GreenFactToBlue, BlueFactToRed, BlueFactToGreen, BlueFactToBlue);
pRasterProc->Release();