How can I create a Compose Image from a Bitmap? fo...
# compose
i
How can I create a Compose Image from a Bitmap? found this function
fun imageFromResource(res: Resources, resId: Int): Image
to create one from a resource and noticed that it uses an
AndroidImage
class that does exactly what I need, but it's internal. Is there a way to do this right now? Or should we copy paste the class or create our implementation of Image what uses a Bitmap?
a
There should be another effect-returning function you can use with the leading
+
like
+state
and friends
That doesn't require passing a
Resources
k
I am having the same issues 😅 thanks Adam!