- public class SubwayMapState {
- private float left;
- private float top;
- private float right;
- private float bottom;
- }
- Matrix matrix = mImageViewMap.getImageMatrix();
- Rect rect = mImageViewMap.getDrawable().getBounds();
- float[] values = new float[9];
- matrix.getValues(values);
- ImageState mapState = new ImageState();
- mapState.setLeft(values[2]);
- mapState.setTop(values[5]);
- mapState.setRight(mapState.getLeft() + rect.width() * values[0]);
- mapState.setBottom(mapState.getTop() + rect.height() * values[0]);
联系客服