https://kotlinlang.org logo
#compose-android
Title
# compose-android
m

martmists

03/08/2024, 8:45 AM
How do I turn a base64-encoded image into an Image? On desktop I can do this through skia.Image and use .toComposeBitmap, but this also erroneously shows up in my shared android/desktop sourceset where these are not available. What should I do to get this working on both platforms? (On Compose Multiplatform 1.6.0)
m

MR3Y

03/08/2024, 9:47 AM
Jetbrains official image viewer sample has an expect actual api that does this conversion, take a look and feel free to copy paste it https://github.com/JetBrains/compose-multiplatform/blob/master/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/ImageBitmap.common.kt
8 Views