Zoom on a image

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Zoom on a image

Postby perkal » Mon Oct 27, 2008 11:07 am

Hi all,

i would like to make zoom on a image and, when the zoom is activated, browse the image with touch. Any idea?

Thanks all!!!
perkal
Freshman
Freshman
 
Posts: 5
Joined: Mon Oct 27, 2008 11:04 am

Top

Postby MrSnowflake » Tue Oct 28, 2008 12:21 pm

There are a couple of ways to achieve this. On would be to draw the image on the canvas. And use a Matrix with a certain scale set (Matrix.setScale()). And then use the drag-'n-drop example which is somewhere on the tutorial board!
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests