Available in the LEADTOOLS Imaging toolkit. |
RemapTableSize example for C++ 4.0 and later
if((m_Lead1.GetBitmapBits () == 16 && m_Lead1.GetIsGrayscale())
|| m_Lead1.GetBitmapBits() == 64 || m_Lead1.GetBitmapBits() == 48)
m_Lead1.SetRemapTableSize (65536);
else if(m_Lead1.GetBitmapBits() == 12)
m_Lead1.SetRemapTableSize(4096);
else
m_Lead1.SetRemapTableSize(256);