Matrix matrix = new Matrix();
matrix.preScale(0.1f,0.1f);
matrix.setTranslate(10);
由于需求是想让绘制的图片又要平移 又要缩放到0.1的大小 如果像上面这样写 平移有效 但是缩放就无效了 于是我将他们的位置换了一下
Matrix matrix = new Matrix();
matrix.setTranslate(10);
matrix.preScale(0.1f,0.1f);
Matrix matrix = new Matrix();
matrix.preScale(0.1f,0.1f);
matrix.setTranslate(10);
由于需求是想让绘制的图片又要平移 又要缩放到0.1的大小 如果像上面这样写 平移有效 但是缩放就无效了 于是我将他们的位置换了一下
Matrix matrix = new Matrix();
matrix.setTranslate(10);
matrix.preScale(0.1f,0.1f);