Skip to content

健巳創作

プログラミングのネタを中心に気ままに更新しています

  • Programing Startup
  • Game Play Reports
  • Contact

ImageViewの回転方法

2012年7月25日 健巳 Android

ImageViewに表示させている画像を回転させるには色々ありますが、下記のコードで実現できます

ImageView iv = (ImageView)findViewById(R.id.imageView1);
Matrix m = new Matrix();
m.postRotate(rotate);
iv.setMatrix( m );

投稿ナビゲーション

Previous Post:画像を等倍縮小して読み込む
Next Post:AndroidでJsonを使う
2025年8月
月 火 水 木 金 土 日
 123
45678910
11121314151617
18192021222324
25262728293031
« 7月    
WordPress Theme: Gridbox by ThemeZee.