loadImage
fn
Image 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
filename | Path to the image file |
Returns
Image object, or null if loading failed or format unknown