已采納回答 / 慕粉3914370
圖片的信息存儲(chǔ)在矩陣當(dāng)中,對該矩陣運(yùn)算,直接改變了圖片的展示,可能其他封裝的api也是對matrix的操作,要看源碼,很重要
2016-12-24
已采納回答 / 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)的矩形范圍
已采納回答 / qq_索馬里海盜盜首_0
有點(diǎn)繞,你慢慢看。scale 表示的是當(dāng)前圖片基于原圖放大的比例mScaleMatix.postScale(scaleFactor, scaleFactor, getWidth() / 2,getHeight() / 2);中的scaleFactor參數(shù)表示基于當(dāng)前已放大的圖片再放大scaleFactor倍。所以圖片的實(shí)際放大的大小是原圖的scaleFactor*scale倍。也就是說,當(dāng)前方法postScale傳入的參數(shù)是scaleFactor,則圖片實(shí)際基于原圖放大的倍數(shù)是scaleFactor*sc...
2015-04-14