摘要:
经亲自测试,确实可行转:http://blog.csdn.net/hexingzhi/article/details/7598567一、Bitmap转Drawable Bitmap bm=xxx; //xxx根据你的情况获取 BitmapDrawable bd=new BitmapDrawable(bm); 因为BtimapDrawable是Drawable的子类,最终直接使用bd对象即可。 二、 Drawable转Bitmap 转成Bitmap对象后,可以将Drawable对象通过Android的SK库存成一个字节输出流,最终还可以保存成为jpg和png的文件。 Drawable d=xxx 阅读全文