Available in the LEADTOOLS Imaging toolkit. |
GetUserLookupTable example for C++ 4.0 and later
long PointCount;
m_Lead1.SetUserLUTCurveSize(3);
m_Lead1.SetUserLUTCurveX(0, 0);
m_Lead1.SetUserLUTCurveY(0, 0);
m_Lead1.SetUserLUTCurveX(1, 128);
m_Lead1.SetUserLUTCurveY(1, 150);
m_Lead1.SetUserLUTCurveX(2, 255);
m_Lead1.SetUserLUTCurveY(2, 255);
m_Lead1.GetUserLookupTable(&PointCount);
m_Lead1.RemapIntensity (CHANNEL_MASTER);
CString s;
s.Format("%ld Points were modified", PointCount);
AfxMessageBox(s);