当前位置:操作系统 > 安卓/Android >>

android读取指定Resourceid的图片

public  static Bitmap drawBackground(Resources res){
 
  Bitmap  bit=BitmapFactory.decodeResource(res, R.drawable.back_image);
  return bit;
 
 };

 

摘自  李克华
补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,