请教一个关于android ImageView的一个问题:如何获取ImageView中图像的大小,以及它在屏幕中的区域(Rect)?(并非是要ImageView本身的大小和区域)
3条回答 默认 最新
- usniyo 2013-02-20 04:52关注
public void setImageMatrix(Matrix aMatrix) { mPhotoView.setImageMatrix(aMatrix); //mPhotoSrcRect:原图像的区域;mPhotoDstRect:设置Matrix后的区域 aMatrix.mapRect(mPhotoDstRect, mPhotoSrcRect); }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报