LuaImageResource (class)

From PGE Wiki
Jump to: navigation, 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.