is there a better way to draw points into an `Imag...
# compose
e
is there a better way to draw points into an
ImageBitmap
than to use
Canvas.drawRect()
with a 1x1 area?
e.g. in Android I could use
Canvas.drawPoint()
, but that doesn't seem to exist in Compose
r
You can do it via nativeCanvas
Alternatively you could set individual pixels on the underlying bitmap
(using asBitmap())
e
I ended up just using my old code and then converting
Bitmap.asImageBitmap()