Available in the LEADTOOLS Imaging toolkit. |
STable example for C++ 4.0 and later
//This example remaps the saturation of each color to one half its original
void CColorReplaceDlg::OnButton9()
{
int i;
for (i=0; i<256; i++)
m_Lead.SetSTable(i, i / 2);
m_Lead.RemapHue(FALSE, FALSE, TRUE, FALSE);
}