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
Post a Comment