如何在drawable资源中获取bitmap?
Resources res=getResources();
Bitmap bmp=BitmapFactory.decodeResource(res, R.drawable.pic);
Bitmap bmp=BitmapFactory.decodeResource(res, R.drawable.pic);
本文介绍了一种从Android的drawable资源中加载Bitmap的方法。通过使用Resources对象和BitmapFactory的decodeResource方法,可以方便地将drawable资源转换为Bitmap对象。
1030

被折叠的 条评论
为什么被折叠?