他为什么不讲一下rectF.set(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());这句代码的含义?这句不设置,或者设置set(0,0,0,0);效果完全不一样!有点避重就轻。授业解惑还想有所保留吗?
2016-04-08
已采纳回答 / 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