LuaImageResource (class)

From Moondust Wiki
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(), Graphics.loadImageResolved() or Graphics.loadAnimatedImage().

As LunaLua ≥ 0.7.3 Beta, This class also provides the following fields for managing images:

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