Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道;
缩放位图图像时,如何获取该位图屏幕中当前可见部分的坐标(x 和 y)
谢谢
float [] values = new float[9]; matrix.getValues(values);
你想要的 x 坐标 -->float transX = m[Matrix.MTRANS_X];
float transX = m[Matrix.MTRANS_X];
你想要的 y 坐标 -->float transY = m[Matrix.MTRANS_Y];
float transY = m[Matrix.MTRANS_Y];