Image
Use Image to load images from the file system.
Interface
class Image implements Identifiable
static Image fromFile(String path)
end
Static Methods
fromFile(String path)
loads an image from the given path, the path is resolved before attempting to load the image, returnsundefined
if unsuccessful
Example
// Load an image from the file system
const image = Image.fromFile('/path/to/image.png');