Home | About | Forum | Manual | Download | Screenshots

Image

This object represents an image loaded into memory. It is usually recommended to share one image object between multiple canvases in order to preserve system and video memory.

    Properties

  • number width
    Width of the image, once it has been loaded. Read-only
  • number height
    Height of the image, once it has been loaded. Read-only

    Constructors

  • Image ( )
    Creates an empty image object
  • Image ( string filename )
    Creates an image object from a file
  • Image ( string filename, Color key )
    Creates an image object from a file, using the specified color key for transparency

    Constant Methods

    Non-Constant Methods

  • load ( string filename )
    Loads an image object from a file
  • load ( string filename, Color key )
    Loads an image object from a file, using the specified color key for transparency