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