public static getImage(filename as String) as Image:
Factory method to get an image instance based on the file extension.
Supported extensions are .svg, .bmp, .gif, .jpg, .jpeg, .tif and .tiff.
| Parameter | Description |
|---|---|
filename | The filename of the image. |
An instance of the appropriate image class.
image = Image.getImage("photo.jpeg")