0
Beantwoord
Zooming Large Graphics
I'm creating an app that displays large photos and I'd like users to be able to pinch zoom in, move the photo around, and pinch zoom out. So far I have this by setting the panel to zoomable="yes", but I'd love to have more control. I'd love for it to take less pinches to zoom in and out, and less swipes when zoomed in to move from one side of the photo to the other.
I suspect zoomscale, zoommin, and zoommax might help but I haven't been able to figure out how to use them. I've set them to floats like .25, .556, and 3.75 without seeing an effect. Anyone have tips for how I can gain more control over my users' zooming experience?
Also, right now if I want to display an 800 x 1500 pixel image it shrinks down so all the image is visible and looks like a thumbnail. I'd love to be able to display the image so it is aligned to the left, its height takes up the entire height of the screen, and the rest of the image to the right is off screen and the user has to scroll the image left to see it. Is there a way to do this?
David
I suspect zoomscale, zoommin, and zoommax might help but I haven't been able to figure out how to use them. I've set them to floats like .25, .556, and 3.75 without seeing an effect. Anyone have tips for how I can gain more control over my users' zooming experience?
Also, right now if I want to display an 800 x 1500 pixel image it shrinks down so all the image is visible and looks like a thumbnail. I'd love to be able to display the image so it is aligned to the left, its height takes up the entire height of the screen, and the rest of the image to the right is off screen and the user has to scroll the image left to see it. Is there a way to do this?
David
Customer support service by UserEcho
Image here: http://i.imgur.com/l2fSum8.jpg
Try out this WIRE:
A simple min/max zoom can be achieved like this based off a 100% image. Min and max can be set for the number times zoom. So a 3x min zoom will kick you to 3 times the size of the image set on pinch and not let you go any smaller. The same applies for max, you can zoom in a max of 60x on pinch in the example below, but not more.
Would love to hear when there is movement on the zoomscale and zoomscroll bugs!
Let me double check with my dev team this morning and see if zoommin and zoommax have been implemented for Android. I know there is still some parity to achieve in some regards.
Thanks.