A Photo Viewer with Zooming and Hand Tool features

While working on a Photo Viewer module, I have decided to add in zooming and hand tool (grab and move) features. Check out the demo here.

Zoom and grab screenshot

2 Comments »

TrackBack URI

  1. Sun says:
    April 24, 2009 at 07:04 am

    Hi! nice work, can you explain the steps to make it? I need to grab an image in a canvas to move around the canvas, similar to your work. Thanks!

  2. Alekkus says:
    April 24, 2009 at 10:04 am

    @Sun – The working principle is the same as one of my post on “dragging a window” (see here). The main difference is that the image being dragged is restricted within a canvas acting like a window. In addition to that is just changing the cursor for various mouse events on the image. Hope that helps : )

Leave a comment

*allowed XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  This blog is powered by WordPress with GimpStyle Theme design by Horacio Bella.