Join Slack
Powered by
I can't figure out how to convert files from the M...
# compose
b
Brian Beale
09/22/2020, 4:43 PM
I can't figure out how to convert files from the MediaStore to one of the objects that the composable Image() expects. Is there a way to convert from a Descriptor, Bitmap, Drawable (w/o res id?) to ImageAsset or Painter?
n
nickbutcher
09/22/2020, 5:28 PM
Bitmap.asImageAsset()
?
https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#asimageasset
b
Brian Beale
09/22/2020, 5:30 PM
Thank you. I knew it existed somewhere; I'm surprised I missed that!
Open in Slack
Previous
Next