Dynamic Web TWAIN: How can I Zoom In/Out on an image

To zoom in/out on an image, you can set the property Zoom

Code Snippet

function btnScan_onclick()
   DWObject.IfShowUI = false;
   DWObject.SetViewMode(-1, -1); //set view mode to -1*-1  to make zoom work
  function btnZoomin_onclick(){
    DWObject.Zoom = DWObject.Zoom*1.1;
  function btnZoomout_onclick(){
      DWObject.Zoom = DWObject.Zoom*0.9;
Is this page helpful?

Leave a Reply

Your email address will not be published.