drawImage
fun DrawScope.drawImage(image: Image, topLeft: Point2D, size: Dimension2D? = null, @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f)
Draws an image positioned at topLeft, optionally scaled to size.
Parameters
image
the image to render.
topLeft
coordinates of the top-left corner.
size
optional dimensions to scale the image into.
alpha
the opacity to render with.