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.SelectSource();
   DWObject.OpenSource();
   DWObject.IfShowUI = false;
   DWObject.SetViewMode(-1, -1); //set view mode to -1*-1  to make zoom work
   DWObject.AcquireImage();
  }
  function btnZoomin_onclick(){
    DWObject.Zoom = DWObject.Zoom*1.1;
  }
  function btnZoomout_onclick(){
      DWObject.Zoom = DWObject.Zoom*0.9;
  }