drawImage

expect fun drawImage(xPos: Short, yPos: Short, src: StringReference, drawDesc: DrawImageDescriptor)

Draw an image on the canvas.

Parameters

xPos

Left coordinate of the image.

yPos

Top coordinate of the image.

src

The path to the image file.

drawDesc

The image descriptor.


expect fun drawImage(xPos: Short, yPos: Short, src: String, drawDesc: DrawImageDescriptor): StringReference

Draw an image on the canvas.

Return

The reference to src. Remember to close it when finished with it.

Parameters

xPos

Left coordinate of the image.

yPos

Top coordinate of the image.

src

The path to the image file.

drawDesc

The image descriptor.

actual fun drawImage(xPos: Short, yPos: Short, src: StringReference, drawDesc: DrawImageDescriptor)
actual fun drawImage(xPos: Short, yPos: Short, src: String, drawDesc: DrawImageDescriptor): StringReference
actual fun drawImage(xPos: Short, yPos: Short, src: StringReference, drawDesc: DrawImageDescriptor)
actual fun drawImage(xPos: Short, yPos: Short, src: String, drawDesc: DrawImageDescriptor): StringReference