I have a dynamic, clickable ImageView
. Basically, once the user clicks the ImageView, s/he can add an image to be displayed inside the view. I want to find a way to get the current image housed in the ImageView and turn it into a bitmap.
So far, this is my attempt:
Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), (BitmapDrawable)imageView.getDrawable());
But it is giving me a Wrong 2nd argument type
error, as it is expecting an int.
I'm keeping the post brief for now for clarity. I can post more code per request.