Answers for "imageview to bitmap android java"

0

get bitmap from imageview

Bitmap bm=((BitmapDrawable)imageView.getDrawable()).getBitmap();
Posted by: Guest on December-28-2020
0

android view to bitmap

public static Bitmap loadBitmapFromView(View v) {
    Bitmap b = Bitmap.createBitmap( v.getLayoutParams().width, v.getLayoutParams().height, Bitmap.Config.ARGB_8888);                
    Canvas c = new Canvas(b);
    v.layout(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
    v.draw(c);
    return b;
}
Posted by: Guest on September-17-2020

Code answers related to "imageview to bitmap android java"

Browse Popular Code Answers by Language