2010年11月2日 星期二

Android bitmap轉drawable

要怎麼把bitmap轉成drawable呢?


Bitmap mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.a01);
Drawable mDrawable = new BitmapDrawable(mBitmap);

沒有留言:

張貼留言