0

I need to upload an image to a canvas and make it able to pan and zoom. I was referencing GOK's answer here, but I ran into problems when trying to use an image. Using an image was made panning disabled and zooming would just make the image flash.

Any help would be greatly appreciated!

Community
  • 1
  • 1
user5432778
  • 121
  • 1
  • 14

1 Answers1

0

If Jquery is an option for you, I'd advise to not to reinvent the wheel and to use some preexisting library, such as Jquery Zoom, which you can find here http://www.jacklmoore.com/zoom/

The effect is pretty sleak and configurable (hover or click) and it should be easy to implement.

You might also be interested in http://www.elevateweb.co.uk/image-zoom/examples

Unforgiven
  • 321
  • 2
  • 16