类
android.graphics.Matrix
方法
setScale();
preScale();
postScale();
常用方法
setScale(float sx,float sy); sx和sy用来指定x轴和y轴的缩放比例
Matrix matrix = new Matrix();
matrix.setScale(0.3f,0.2f);
setScale(float sx,float sy,float px,floatpy); px和py为轴心,sx和sy为缩放量
Matrix matrix = new Matrix();
matrix.setScale(30,30,100,100);