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);
这样就如愿以偿 达到了效果 具体是为什么还不太清楚 希望看到的人知道的话赐教一下 感激不尽
转载请注明原文地址: https://ju.6miu.com/read-38338.html