MagGlassPaintContrast example for C++ Builder
void __fastcall TForm1::btnStartMagnifyingGlassClick(TObject *Sender)
{
L_INT nStatus;
// Setting the Magnifying Glass Paint contrast, gamma and intensity
LEADImage1->MagGlassPaintContrast= LEADImage1->MagGlassPaintContrast + 100;
LEADImage1->MagGlassPaintGamma = LEADImage1->MagGlassPaintGamma + 100;
LEADImage1->MagGlassPaintIntensity = LEADImage1->MagGlassPaintIntensity + 100;
// Starting the Magnifying Glass
nStatus= LEADImage1->StartMagGlass(100, 100, 400, (TColor)RGB(255, 0, 0), (TColor)RGB(128, 128, 128), False, 1, False, CROSSHAIR_FINE, True, True);
if ( nStatus != SUCCESS )
ShowMessage ( "Error Starting the Magnifying Glass, Error: " + IntToStr(nStatus) );
}