What's the most efficient way to get from an UIIma...
# compose-ios
s
What's the most efficient way to get from an UIImage to an Skia ImageBitmap? There is the way to convert the UIImage to an byteArray and read that with Skia, but I wonder if someone encountered this before and found an efficient solution for this problem.
👍 1
just changed link
s
Thank you.
Unfortunately the code in
toSkiaImage()
leads to wrong colored Images if they come from Apple Photos UIImages 🤷‍♂️ The PNG way works, but it memory inefficient.
I somehow hope that someone with a deep understanding of UIImage and SKIA may be able to build a low-level converter.
136 Views