LevelLowBit example for Visual J++

This is also the example for LevelHighBit.

This example sets LevelLowBit and LevelHighBit to display the image using only the eight least significant bits.

LEAD1.setAutoRepaint( false );

// use least significant 8 bits
LEAD1.setLevelLowBit( (short) 0 );
LEAD1.setLevelHighBit( (short) 7 );

LEAD1.setAutoRepaint( true );