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
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
Albert Chang
04/08/2025, 2:34 AM
AFAIK no. There are several ways of creating an
ImageBitmap
but they all require a
ByteArray
.
k
krzysztof
04/08/2025, 11:59 AM
yes, found out that u cannot manipulate pixels after creating a bitmap, so had to create those before putting bitmap together