エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
【Android】Matrixのメソッド : いのめも
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
【Android】Matrixのメソッド : いのめも
android.graphics.Matrix.setTranslate(x, y); 画像の左上を x, y に移動 android.graphics.Matrix.post... 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