Humphrey
02/07/2022, 5:51 PMval skijaArtifact = "skija-linux"
val skijaVersion = "0.93.1"
dependencies {
implementation(compose.desktop.currentOs)
api ("org.jetbrains.skija:${skijaArtifact}:${skijaVersion}")
}
I'm using the following version of compose:
plugins {
kotlin("jvm") version "1.6.10"
id("org.jetbrains.compose") version "1.0.1-rc2"
}
olonho
02/07/2022, 5:55 PMorg.jetbrains.skiko
, and see example at https://github.com/JetBrains/compose-jb/tree/master/tutorials/Image_And_Icons_Manipulations#loading-images-from-device-storage-or-network-asynchronouslyHumphrey
02/07/2022, 5:59 PMsuspend fun downloadImage(url: String): ImageBitmap {
val image = imageClient.get<ByteArray>(url)
return loadImageBitmap(ByteArrayInputStream(image))
}
olonho
02/07/2022, 6:09 PMSrSouza
02/07/2022, 9:10 PM