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

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

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -