首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Android 创设图片

2012-09-24 
Android 创建图片Bitmap img((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap()?

Android 创建图片

           Bitmap img=((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap();

?

========================================

Resources r = this.getContext().getResources();
Inputstream is = r.openRawResource(R.drawable.my_background_image);
BitmapDrawable? bmpDraw = new BitmapDrawable(is);
Bitmap bmp = bmpDraw.getBitmap();

?

热点排行