toDrawable

Create a BitmapDrawable from this Bitmap.


Create a ColorDrawable from this color value.


@RequiresApi(value = 26)
inline fun Color.toDrawable(): ColorDrawable(source)

Create a ColorDrawable from this Color (via Color.toArgb).