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年12月
月 火 水 木 金 土 日
1234567
891011121314
15161718192021
22232425262728
293031  
« 7月    
WordPress Theme: Gridbox by ThemeZee.