标签:style color 使用 sp on bs size new nbsp
一、Bitmap转Drawable
Bitmap mBitMap=getYourBitMap(); //getYourBitMap()是你获取BitMap的方法
BitmapDrawable mBitDrawable=new BitmapDrawable(mBitMap);
//BtimapDrawable是Drawable的子类,直接把mBitDrawable对象当作Drawable使用即可。
二、 Drawable转Bitmap
Drawable mDrawable=getYourDrawable (); //getYourDrawable()是你获取Drawable 的方法
BitmapDrawable mBitDrawable= (BitmapDrawable) mDrawable;
Bitmap mBitMap= mBitDrawable.getBitmap(); //最后通过mBitDrawable的自带的方法获取需要的Bitmap对象。
标签:style color 使用 sp on bs size new nbsp
原文地址:http://www.cnblogs.com/wytings/p/4116053.html