public static getImage(filename as String):
Factory method to get an image instance based on the file extension.
| Parameter | Description |
|---|---|
filename | The filename of the image. |
An instance of the appropriate image class.
image = Image.getImage("image.png")