Categories
Categories
Mouli
by on April 8, 2021
59 views
Convert Drawable to Bitmap in Android. Showing images from internet get time to load on the screens, some times we need to show images from the drawable folder on dynamically. We can show images from drawable folder by setImageResource() and setImageBitmap() methods. In this post we will cover how to convert drawable to bitmap in android. we will show you convert drawable to bitmap and append this bitmap image to Imageview. To Convert Drawable to Bitmap we will use BitmapFactory.decodeResource() property. This property takes two arguments.

Resource Instance
Resource ID
https://www.rrtutors.com/tutorials/convert-drawable-to-bitmap-android
Be the first person to like this.