StopMagGlass example for C++ Builder
LEADRasterView1->ScaleMode = 3;
//Set MagGlass flags
//In this case the masked colors from the Magnifying Glass area will be all the colors
//except those colors which will be set using the MagGlassMask property
LEADRasterView1->MagGlassFlags = MAGGLASS_MASK_INVERT;
//set the color mask to mask out all colors except a few shades of black
LEADRasterView1->MagGlassMaskCount = 3;
LEADRasterView1->MagGlassMask [0]= RGB(0, 0, 0);
LEADRasterView1->MagGlassMask[1]= RGB(1, 1, 1);
LEADRasterView1->MagGlassMask[2]= RGB(2, 2, 2);
LEADRasterView1->RgnFrameType = 0;
LEADRasterView1->StartMagGlass (100, 100, 400, RGB(255, 0, 0), RGB(128, 128, 128), true, 1, false, CROSSHAIR_FINE, true, true);
//.......some other work..............
//.......some other work..............
//Stop the MagGlass
LEADRasterView1->StopMagGlass ();