saa*_*az1 3 android matrix scale bounds imageview
我有一个将scaletype设置为matrix的ImageView,并希望在转换矩阵后得到一个带有图像边界的Rect.
我怎么得到这样的直肠?谢谢.
Tom*_*ski 10
ImageView imageView = (ImageView)findViewById(R.id.imageview); Drawable drawable = imageView.getDrawable(); Rect imageBounds = drawable.getBounds();
然后使用Matrix.mapRect.
归档时间:
14 年,2 月 前
查看次数:
4964 次
最近记录: