Android: how to convert whole ImageView to Bitmap?
Have you tried:
BitmapDrawable drawable = (BitmapDrawable) imageView.getDrawable();
Bitmap bitmap = drawable.getBitmap();
GetBitmap from ImageView
Try this, hope it helps
ImageView imageView = findViewById(R.id.image);
BitmapDrawable bd = (BitmapDrawable) imageView.getDrawable();
Bitmap b = bd.getBitmap();
How to convert a Drawable to a Bitmap?
This converts a BitmapDrawable to a Bitmap.
Drawable d = ImagesArrayList.get(0);
Bitmap bitmap = ((BitmapDrawable)d).getBitmap();
How to convert Views to bitmaps?
How to convert View into Bitmap
FrameLayout view = (FrameLayout)findViewById(R.id.framelayout);
view.setDrawingCacheEnabled(true);
view.buildDrawingCache();
Bitmap bm = view.getDrawingCache();
Related Topics
How to Start an Android Application from the Command Line
Android Navigation Architecture Component - Get Current Visible Fragment
Dynamically Updating an Autocompletetextview Adapter
Android - Print Full Exception Backtrace to Log
Android How to Create Triangle and Rectangle Shape Programmatically
React Native Adb Reverse Enoent
Send Auto Email Programmatically
Broadcast Receiver Class and Registerreceiver Method
Overridependingtransition Does Not Work When Flag_Activity_Reorder_To_Front Is Used
How Do We Distinguish Never-Asked from Stop-Asking in Android M's Runtime Permissions
Rawquery(Query, Selectionargs)
How to Compile a Static Library Using the Android Ndk
Detect Back Button But Don't Dismiss Dialogfragment
Android - Hide All Shown Toast Messages
How to Display Menu Item with Icon and Text in Appcompatactivity