image
abstract fun image(image: Image, destination: Rectangle = Rectangle(size = image.size), opacity: Float = 1.0f, radius: Double = 0.0, source: Rectangle = Rectangle(size = image.size))
Draws an image.
Parameters
image
to draw
destination
rectangle on the Canvas to draw image
opacity
of the drawn image
radius
of image corners if rounding
source
rectangle within the image to draw into destination
open fun image(image: Image, at: Point, opacity: Float = 1.0f, radius: Double = 0.0, source: Rectangle = Rectangle(size = image.size))
Draws an image.
Parameters
image
to draw
at
this point on the Canvas
opacity
of the drawn image
radius
of image corners if rounding
source
rectangle within the image to draw into destination