struct

CrImage::Util::SpriteInfo

Inherits Struct / Value / Object

Metadata for a sprite within a sprite sheet.

Contains position and dimensions of a sprite in the combined sheet. Used for extracting individual sprites or generating sprite maps.

Constructors

new(x : Int32, y : Int32, width : Int32, height : Int32, index : Int32)
Source

Instance methods

bounds

Returns the bounding rectangle of this sprite.

Useful for cropping the sprite from the sheet.

Source
height
Source
height=(height : Int32)
Source
index
Source
index=(index : Int32)
Source
width
Source
width=(width : Int32)
Source
x=(x : Int32)
Source
y=(y : Int32)
Source