https://kotlinlang.org logo
#compose-web
Title
# compose-web
a

AJ Alt

03/16/2024, 4:32 PM
Are you supposed to be able to implement a custom
ImageBitmap
? Even the simplest implementation causes an interal error "Unable to obtain org.jetbrains.skia.Image" on wasm:
Copy code
val orig = imageResource(Res.drawable.image)
val bmp = object : ImageBitmap by orig {}
Image(bmp, null)
Wondering if this is a bug or if it's just intentionally not supported.
3 Views