已采纳回答 / qq_茶壶上的蜗牛_0
Apply this matrix to the rectangle, and write the transformed rectangleback into it. This is accomplished by transforming the 4 corners of rect,and then setting it to the bounds of those points根据宽高拿到在view在parent左上右下四个点的矩形范围
2016-04-08
已采纳回答 / qq_索马里海盗盗首_0
有点绕,你慢慢看。scale 表示的是当前图片基于原图放大的比例mScaleMatix.postScale(scaleFactor, scaleFactor, getWidth() / 2,getHeight() / 2);中的scaleFactor参数表示基于当前已放大的图片再放大scaleFactor倍。所以图片的实际放大的大小是原图的scaleFactor*scale倍。也就是说,当前方法postScale传入的参数是scaleFactor,则图片实际基于原图放大的倍数是scaleFactor*sc...
2015-04-14