Drawable drawable = new BitmapDrawable(bitmap);
或者
BitmapDrawable bd= new BitmapDrawable(getResource(), bm);
本文介绍如何使用Bitmap对象创建Drawable实例,提供了两种构造BitmapDrawable的方法,包括直接通过Bitmap对象构造及结合资源管理器的方式。
Drawable drawable = new BitmapDrawable(bitmap);
或者
BitmapDrawable bd= new BitmapDrawable(getResource(), bm);
348
8405
2192
3410

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