美文网首页
动画特效--旋转图像--java

动画特效--旋转图像--java

作者: suxiliu | 来源:发表于2016-09-24 19:39 被阅读59次

android.graphics.Matrix

方法

setRotate();
proRotate() ; 开始前
postRotate(); 开始后

常用方法

setRotate(float degrees); 以(0,0)为轴心旋转degrees度

Matrix matrix = new Matrix();
matrix.setRotate(30);

setRotate(float degrees,float px,float py); 以(px,py)为轴心旋转degrees度

Matrix matrix = new Matrix();
matrix.setRotate(30,10,10);

例子

Paste_Image.png

相关文章

网友评论

      本文标题:动画特效--旋转图像--java

      本文链接:https://www.haomeiwen.com/subject/kxwxyttx.html