MagnifierZoom Example VC++

This example scrolls the image to a specified location, sets the Magnifier zoom factor, and then displays the Magnifier window.

void CImgEdit1Dlg::OnMagnifier() 
{
    // This example would scroll the image to a specific location and
    // then display a magnifier window.
    
    // Scroll the image to a specific horizontal/vertical pixel
    // location.
    ImgEdit1.SetScrollPositionX(800);
    ImgEdit1.SetScrollPositionY(1000);
    // Magnifier window will zoom underlying image data to 4 times
    // its size.
    ImgEdit1.SetMagnifierZoom(1); // wi4XMagnifier  // 1
    VARIANT evt; V_VT(&evt) = VT_ERROR; // set to default
    ImgEdit1.ShowMagnifier(TRUE,evt,evt,evt,evt);
}