core-ktx / androidx.graphics.drawable / android.graphics.Bitmap / toDrawable

toDrawable

inline fun Bitmap.toDrawable(resources: Resources): BitmapDrawable

Create a BitmapDrawable from this Bitmap.