Available in the LEADTOOLS Imaging toolkit. |
MagGlassPaintContrast example for C++ 4.0 and later
void CSampleDlg::StartMagnifyingGlass()
{
int nRet;
CString szMsg;
// Setting the Magnifying Glass Paint contrast, gamma and intensity
m_Lead1.SetMagGlassPaintContrast(m_Lead1.GetMagGlassPaintContrast() + 100);
m_Lead1.SetMagGlassPaintGamma(m_Lead1.GetMagGlassPaintGamma() + 100);
m_Lead1.SetMagGlassPaintIntensity(m_Lead1.GetMagGlassPaintIntensity() + 100);
// Starting the Magnifying Glass
nRet = m_Lead1.StartMagGlass(100, 100, 400, RGB(255, 0, 0), RGB(128, 128, 128), false, 1, false, CROSSHAIR_FINE, true, true);
if (nRet != 0)
{
szMsg.Format("Error Starting the Magnifying Glass, Error: %d", nRet);
AfxMessageBox(szMsg);
}
}