LuaImageResource (class)

From Moondust Wiki
Revision as of 22:49, 10 January 2017 by Pixelpest (talk | contribs)
Jump to navigation Jump to search


The LuaImageResource refers to a LunaLua specific type, consisting of the data of a loaded Portable Network Graphics (.png) image file. To create image data, files can be loaded via Graphics.loadImage() or Graphics.loadAnimatedImage().

This class also provides the following fields for managing images:

Img.width int The image width
Img.height int The image height.