I used this code and it worked for me as well. The only thing I did to improve it was change the Panel1.ClipRect=True to stop the zoomed image drawing over the rest of the form. But many thanks @XylemFlow