//Drawable 轉 Bitmap
Drawable icon ;
Bitmap bitmap = ((BitmapDrawable)icon).getBitmap();
//Bitmap 轉 Drawable
Bitmap bitmapB ;
Drawable DrawableD = new BitmapDrawable(this.getResources(),bitmapB);
全站熱搜
//Drawable 轉 Bitmap
Drawable icon ;
Bitmap bitmap = ((BitmapDrawable)icon).getBitmap();
//Bitmap 轉 Drawable
Bitmap bitmapB ;
Drawable DrawableD = new BitmapDrawable(this.getResources(),bitmapB);
留言列表