LevelLowBit example for Delphi
This is also the example for LevelHighBit.
This example sets LevelLowBit and LevelHighBit to display the image using only the eight least significant bits.
{Grayscale image to 12-bit}
Lead1.GrayScale(12);
Lead1.AutoRepaint := False;
{use least significant 8 bits}
Lead1.LevelLowBit := 0;
Lead1.LevelHighBit := 7;
Lead1.AutoRepaint := True;