WindowLevel example for C++ 4.0 and later

This example converts a bitmap to 12-bit grayscale and then performs window leveling on the eight least significant bits of the image.

    m_Lead1.Grayscale(12);      //Grayscale image to 12-bit

    //use least significant 8 bits

    m_Lead1.SetLevelLowBit(0);

    m_Lead1.SetLevelHighBit(7);

    m_Lead1.WindowLevel();