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