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年10月
月 火 水 木 金 土 日
 12345
6789101112
13141516171819
20212223242526
2728293031  
« 7月    
WordPress Theme: Gridbox by ThemeZee.