摘要: 创建Bitmap的集中方式:1.从drawable中图片文件创建。(用于获取工程里的图片)Resource res = context.getResource();//获取Resource int id = R.drawable.photo;Bitmap bitmap = BimapFactory.decodeResource(Resources res, int id);2.从图片文件获取Bitmap。(用于获取手机上的图片)Bitmap bitmap = BimapFactory.decodeFile(String pathName);3.从字节数组获取Bitmap。(用于获取元图片).. 阅读全文
posted @ 2012-05-24 15:26 bvin 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 问题如下:有些setXXX不能放在create后面。解决方法:把setXXX放在create()之前。 阅读全文
posted @ 2012-05-24 14:57 bvin 阅读(155) 评论(1) 推荐(0) 编辑