Is there a way to create a bitmap, that can be use...
# compose-ios
k
Is there a way to create a bitmap, that can be used to create ImageBitmap for compose? I have encoded barcode into intarray and want to create the image of it. It is fine on android, because I have mutable bitmap available, so I wonder if there's anything like this for iOS
a
Image.makeFromEncoded(byteArray).toComposeImageBitmap()
k
Yeah, saw this, but my problem is to build this byte array in the first place. Android has this createBitmap which gives mutable bitmap that I can modify at will (and create image of out it). Trying to find if there is something similar for ios
a
AFAIK no. There are several ways of creating an
ImageBitmap
but they all require a
ByteArray
.
k
yes, found out that u cannot manipulate pixels after creating a bitmap, so had to create those before putting bitmap together