klyn.gui.images.Image.getImage
method
public static getImage(filename as String):
Description

Factory method to get an image instance based on the file extension.

Parameters
ParameterDescription
filenameThe filename of the image.
Returns

An instance of the appropriate image class.

Example
image = Image.getImage("image.png")