Graphics.loadImage

This function is used to load an image into the resource memory of SMBX. This image can be displayed with other functions in the Graphics category.

Usage
First, you need an image to use. The image must be in the .png format, or it may not display correctly. The image can have true transparency; a mask image is not required. To use this function, you must set a variable that contains it:

This loads the image "test.png" into the resource memory of SMBX. Note that this doesn't cause the image to appear, but it makes it available to be called in other functions.

In a function for showing the image, set the variable you used as the argument for "LuaImageResource":

This will load "test.png" on the screen at position [0,0] (the top left corner).