BitonalScaling example for C++ 5.0 and later

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

if (m_LEADRasterView1.GetRaster().IsSupportLocked(L_SUPPORT_DOCUMENT))
{
   CString cMsg(TEXT("No scale to gray - You need to unlock Document/Medical capabilities"));
   MessageBox(cMsg, TEXT("Error"));
}
else
{
   m_LEADRasterView1.SetBitonalScaling(BITONALSCALING_SCALETOGRAY);
   m_LEADRasterView1.ForceRepaint();
}