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

Extensions for android.graphics.Bitmap

toAdaptiveIcon

fun Bitmap.toAdaptiveIcon(): Icon

Create an Icon from this adaptive Bitmap.

toDrawable

fun Bitmap.toDrawable(resources: Resources): BitmapDrawable

Create a BitmapDrawable from this Bitmap.

toIcon

fun Bitmap.toIcon(): Icon

Create an Icon from this Bitmap.