`
xiaoyaoniu
  • 浏览: 187140 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

Android Bitmap 与 Drawable之间的转换 .

阅读更多
转换Bitmap to Drawable
•Bitmap bitmap = new Bitmap (...);      
•Drawable drawable = new BitmapDrawable(bitmap);




转换Drawable to Bitmap
•Drawable d = ImagesList.get(0);   
•Bitmap bitmap = ((BitmapDrawable)d).getBitmap();  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics