Available in the LEADTOOLS Imaging toolkit. |
BalanceColors example for C++ 5.0 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;
m_Lead1.BalanceColors(RedFactToRed, RedFactToGreen, RedFactToBlue, GreenFactToRed, GreenFactToGreen, GreenFactToBlue, BlueFactToRed, BlueFactToGreen, BlueFactToBlue);