已采納回答 / 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根據(jù)寬高拿到在view在parent左上右下四個(gè)點(diǎn)的矩形范圍
最新回答 / 為夢(mèng)而戰(zhàn)之學(xué)習(xí)
因?yàn)榭s放的時(shí)候需要知道當(dāng)前的中心點(diǎn),如果不前移動(dòng)的話,不能保證在縮放時(shí)使用的中心點(diǎn)是最新中心點(diǎn),所以需要先移動(dòng),得到一個(gè)最新的中心點(diǎn),然后縮放時(shí)使用這個(gè)最新的中心點(diǎn)。
2016-01-24
最新回答 / 慕桂英1529240
注意檢查:很有可能是
getMatrixRectF()方法中獲取的Matrix不是自己的Matrix,而是通過getMatrix獲取導(dǎo)致錯(cuò)誤。