Android中Drawable與Bitmap相互轉換的方法

1..Bitmap轉Drawablecanvas Drawable drawable =new BitmapDrawable(bmp);spa 2.Drawable轉Bitmapcode Resources res=getResources(); orm Bitmap bmp=BitmapFactory.decodeResource(res, R.drawable.sample_0); Resou
相關文章
相關標籤/搜索