Answers for "bitmap to drawable android"

2

get bitmap from drawable

Bitmap icon = BitmapFactory.decodeResource(context.getResources(),
                                           R.drawable.icon_resource);
Posted by: Guest on December-10-2020
0

convert bitmap to drawable android

Drawable d = new BitmapDrawable(getResources(), bitmap);
Posted by: Guest on May-28-2021

Code answers related to "bitmap to drawable android"

Browse Popular Code Answers by Language