I have a `DrawableResource`. I'd like to draw it o...
# compose
c
I have a
DrawableResource
. I'd like to draw it on a canvas, like so:
Copy code
Canvas(Modifier.fillMaxSize()) { drawImage(image) }
... but it doesn't work, because I need an
ImageBitmap
. What's the best way of doing this?
n
maybe you can try this:
Copy code
val image = ImageBitmap.imageResource(...)
c
I'm programming multiplatform. It looks like that's android only?