loadImage

fnImage loadImage(string filename)

Loads an image from file, auto-detecting the format.

The format is detected from the filename extension. For more control, use the specific loader classes (PngImage, JpegImage, etc.) or SharedImage.get() for cached loading.

Parameters

filenamePath to the image file

Returns

Image object, or null if loading failed or format unknown