BitonalScaling example for C++ Builder

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

   if (LEADRasterView1->Raster->IsSupportLocked (L_SUPPORT_DOCUMENT))
        ShowMessage ("No scale to gray - You need to unlock Document/Medical capabilities");
   else
   {
      LEADRasterView1->BitonalScaling = BITONALSCALING_SCALETOGRAY;
        LEADRasterView1->ForceRepaint ();
   }