Given
ImageView image = R.findViewById(R.id.imageView);
image.setImageBitmap(someBitmap);
Is it possible to retrieve the bitmap?
Given
ImageView image = R.findViewById(R.id.imageView);
image.setImageBitmap(someBitmap);
Is it possible to retrieve the bitmap?
Write below code
This will get you a
Bitmap
from theImageView
. Though, it is not the same bitmap object that you've set. It is a new one.=== EDIT ===
This code is better.
Other way to get a bitmap of an image is doing this:
try this code: