I am trying to make an Android application that works with finger paint, and this should be able to control scaling. So I have an image in the background and I draw it, but when I zoom in and out, I need to resize the image and the distance traveled, and I donโt know how to do it. I used Zdnet code to implement a pinch to increase gestures , and it works great for a background image, so I thought the only step to make a โpath changeโ was to put mPath.transform (matrix) at the end of onTouch () but this does not allow me to draw correctly and not resize the path. How can i do this?
Note: Google finger paint implementation code.
ruvyo source share