課程
/移動(dòng)開(kāi)發(fā)
/Android
/打造個(gè)性的圖片預(yù)覽與多點(diǎn)觸控
matrix.mapRect(rectF)到底是做什么用的?也沒(méi)說(shuō)啊
2016-04-08
源自:打造個(gè)性的圖片預(yù)覽與多點(diǎn)觸控 2-4
正在回答
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)的矩形范圍
慕妹4463934 提問(wèn)者
舉報(bào)
實(shí)現(xiàn)圖片自由縮放與多點(diǎn)觸控效果,對(duì)Matrix以及手勢(shì)檢測(cè)API深入學(xué)習(xí)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-04-13
Apply this matrix to the rectangle, and write the transformed rectangle
back 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)的矩形范圍