https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

pierbezuhoff

11/18/2023, 1:08 PM
Hello! I have a question, how to draw a custom image resource on Canvas? I tried loading my image via
painterResource("path/to/image.png")
from compose.resources, but the resulting Painter does not have any
DrawScope.draw()
method (a la android Painter), or any way to convert it into ImageBitmap
p

pierbezuhoff

11/19/2023, 9:34 PM
Thank you, I got misled by no autocomplete when in the wrong scope it seems