Resources res = getResources(); Bitmap bitmap = BitmapFactory.decodeResource(res, id); id为R.drawable.图片名称