android - Determine location of Bitmap from Matrix -


i find x-y coordinates of bitmap image drawn directly canvas in fragment. unfortunately class handles drawing exposes transformation matrix, have been trying extract information that.

as understand it, first 2 rows of last column should x-y coordinates should not? doesn't seem case me. tried

float[] matrixvalues = new float[9]; matrix.getvalues(matrixvalues); float x = matrixvalues[2]; float y = matrixvalues[5]; 

but coordinates off screen. advice?


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -