BitonalScaling example for Visual J++

This example sets the display to use scale-to-gray and repaints the image. This affects only 1-bit images.

if( LEAD1.IsSupportLocked( (short) LTOCXU.SupportLockConstants.L_SUPPORT_DOCUMENT ) )
   MessageBox.show( "No scale to gray - You need to unlock Document/Medical capabilities" );
else
{
   LEAD1.setBitonalScaling( (short) LTOCXU.BitonalScalingConstants.BITONALSCALING_SCALETOGRAY );
   LEAD1.ForceRepaint();
}