将一个imageView对象转换为Bitmap对象,具体方法如下: BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable(); Bitmap bitmap = drawable.getBitmap();
ImageView转Bitmap的方法。
最新推荐文章于 2022-06-23 06:55:12 发布
将一个imageView对象转换为Bitmap对象,具体方法如下: BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable(); Bitmap bitmap = drawable.getBitmap();