2012年6月19日火曜日

res>drawableにある画像ファイルをBitmapに変換する

res>drawableにある画像ファイルをBitmapに変換する

Resources r = getResources();
Bitmap b = BitmapFactory.decodeResource(r, R.drawable.green);

0 件のコメント:

コメントを投稿