how to zoom and pan a simple imageview using matrix - android

I got frustated with zooming and panning issue of an image in android.I dont want to use sony zoom tutorial because i need zoom from buttons.
can anybody suggests me or provide me code to zoom an image with simple matrix calculation.
please do needful.

Related

Pinch to zoom in and out in VideoView Android

I searched many times about this question.But i got only Image Zoom in and zoom out examples.I tried to modify that codes only but image zoom uses setMatrix. So how can i set that matrix in videoview. Please help me by giving a small example.I implemented code within OnTouch().

how to pinch-zoom and zoom on double tap in view group in android 2.3

In my android application i want to perform the pinch zoom functionality on a view (not image view).
I also want to zoom the view-group on double-tap event.i did it by using a canvas but i think this is not the exact solution. please suggest the solution to my problem.
thanks in advance.....

Pinch-Zoom with GLSurfaceView

I have a following problem -
I am developing an application and i decided for the GLSurfaceView because i needed openGl for a better and more natural page curl animation.
Having achieved that, now i find myself in a bit of a problem, since i cannot find a tutorial of any kind to implement pinch zoom on GLSurfaceView. I captured the event, the distances between fingers, scale, etc... But i do not know how to perform the actual transformation.
I found the one transforming ImageView via matrix, but alas...
Anyone done pinch zooming in openGl?
I don't think there is any need to post the code, but i will do it if it will nelp you in answering.
you can use the concept of scalegesturedetector to implement Pinch zoom , refer http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

Android: Custom view Zoom/Pinch

I've a running graph library developed with onDraw plotting the graph using canvas.drawLine methods. In onTouch I've implemented scroll functionality.
Now my customer wants Zoom/Pinch. Is it possible to perform zoom/pinch on such a view without redrawing for these operations?
What is the best way to implement this?
Now next..
How can I display Zooming indicators for this??
I've some how managed to display scale of zoom (scaleFactor * 100). How will I show a zooming indicator? I can display static images using canvas.drawBitmap. But is there a more better way?
Any help is appreciated
Add a pinch zoom capability to the graph:
How to implement pinch zoom refer : android pinch zoom

How to resize a path?

I'm trying to do an app in Android that work with finger paint and that must be able to manage the zoom. So I have an image in the background and I draw over it, but when I zoom in and out, I have to resize both the image and the path drawn and I don't know how. I used the code of Zdnet to implement the pinch to zoom gesture and it works great for the background image, so I thought that the only step to make the "path resize" was to put mPath.transform(matrix) at the end of onTouch(), but it doesn't allow me to draw properly and does not resize the path.
How could I do it?
Note: the code to implement the finger paint is that of Google.
mPath.transform should work, it's hard to tell what's wrong without code.
Alternatively, you could use Canvas.scale if you want to scale everything drawn by the same factor.

Categories

Resources