图片相干的处理

图片相关的处理1.Bitmap bitmap BitmapFactory.decodeResource(res, id)?2.InputStream is context.g

图片相关的处理

1.Bitmap bitmap = BitmapFactory.decodeResource(res, id);

?

2.InputStream is = context.getResources().openRawResource(R.drawable.app_sample_code); Bitmap bitmap = BitmapFactory.decodeStream(is);

Drawable dr = context.getResources().getDrawable(R.drawable.beach);
?