Is there a way to get ByteArray/UIImage from Compo...
# multiplatform
a
Is there a way to get ByteArray/UIImage from Compose ImageBitmap for KMM iOS?
b
yes
Copy code
.asSkiaBitmap().readPixels()
a
Hi @Aakansha Arya 🙂 Did you solve this problem? i need to convert ImageBitmap to UIImage too
s
do someone fixed this?
a
return Image.makeFromBitmap(bitmap = bitmap._asSkiaBitmap_()) .encodeToData(EncodedImageFormat.PNG, 100)?.bytes ?: _byteArrayOf_()
s
how can I create UIImage from ByteArray?