android.graphics.Matrix.setTranslate(x, y); 画像の左上を x, y に移動 android.graphics.Matrix.postScale(scalex, scaley, x, y); 画面の x, y を中心(固定点)に今のサイズに横幅 scalex, 縦幅 scaley をかける android.graphics.Matrix.setScale(scalex, scaley); 初期画像の scalex, scaley 倍にする。 なぜか setScale のあとに setTranslate を呼ぶと倍率が元画像の1倍にもどるので注意。 ImageViewで上下にスペースができる初期状態に戻したいときは matrix.setTranslate(0, initY); float init = (今の倍率から初期倍率に戻すための倍率); ma
![【Android】Matrixのメソッド : いのめも](https://cdn-ak-scissors.b.st-hatena.com/image/square/da78a05937633f7a2b4b2219826151c370cd607b/height=288;version=1;width=512/https%3A%2F%2Fparts.blog.livedoor.jp%2Fimg%2Fusr%2Fcmn%2Fogp_image%2Flivedoor.png)