Available in LEADTOOLS Medical Imaging toolkits. |
LevelLowBit example for C++ 4.0 and later
This is also the example for LevelHighBit.
This example sets LevelLowBit and LevelHighBit to display the image using only the eight least significant bits.
m_Lead1.SetAutoRepaint(FALSE);
//use least significant 8 bits
m_Lead1.SetLevelLowBit(0);
m_Lead1.SetLevelHighBit(7);
m_Lead1.SetAutoRepaint(TRUE);