将一个imageView对象转换为Bitmap对象,具体方法如下: BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable(); Bitmap bitmap = drawable.getBitmap();
ImageView转Bitmap的方法。
最新推荐文章于 2024-05-29 17:01:20 发布
将一个imageView对象转换为Bitmap对象,具体方法如下: BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable(); Bitmap bitmap = drawable.getBitmap();