load

fun load(path: String): Image

Loads an image from the specified file path.

Return

An Image object representing the loaded image.

Parameters

path

The file path of the image to load, relative to appDir.


fun load(file: File): Image

Loads an image from the specified file.

Return

An Image object representing the loaded image

Parameters

file

The file to load