I’m implementing a pinching and dragging thing and I’m confused as to how to get the image that I’m affecting to move to it’s dragged to location (the scaling is working).
So, in the past I would position the image thusly…
canvas.drawBitmap(img, x,y, paint);
but now that I’m using a matrix I don’t see what function in it gets the image over to where I want it to be.
Could someone post a short code snippet of what one needs to do to get the image to move away from 0,0?
TIA
Use postTranslate on your scaling matrix: