一.Drawale图片转换成Bitmap图片
Drawable db = getContext().getResources().getDrawable(R.drawable.alert_product_detail_bg);
BitmapDrawable bds = (BitmapDrawable) db;
Bitmap bitmaps = bds.getBitmap();
二.Bitmap 转换成Draw文件
Bitmap bitmap = F_ComOpe.makeImg(734, 499, BitmapFactory.decodeFile(D_OrderPathData.FILEPATH + mProductContent.getPic()));
BitmapDrawable bd = new BitmapDrawable(bitmap);
注明:QQ技术交流群:108614806 感兴趣的加一下。