StopMagGlass example for C++ 5.0 and later
m_LEADRasterView1.SetScaleMode(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 MagGlassMask property
m_LEADRasterView1.SetMagGlassFlags (MAGGLASS_MASK_INVERT);
//set the color mask to mask out all colors except a few shades of black
m_LEADRasterView1.SetMagGlassMaskCount(3);
m_LEADRasterView1.SetMagGlassMask(0, RGB(0, 0, 0));
m_LEADRasterView1.SetMagGlassMask(1, RGB(1, 1, 1));
m_LEADRasterView1.SetMagGlassMask(2, RGB(2, 2, 2));
m_LEADRasterView1.SetRgnFrameType(0);
m_LEADRasterView1.StartMagGlass(100.0f, 100.0f, 400, RGB(255, 0, 0), RGB(128, 128, 128), TRUE, 1.0f, FALSE, CROSSHAIR_FINE, TRUE, TRUE);
//.......some other work..............
//.......some other work..............
//Stop the MagGlass
m_LEADRasterView1.StopMagGlass ();