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(Lead1->IsSupportLocked(L_SUPPORT_EXPRESS))
ShowMessage("No scale to gray - You need to unlock Document/Medical capabilities");
else
{
Lead1->BitonalScaling = btsScaleToGray;
Lead1->ForceRepaint();
}