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)
SourceInstance methods
bounds
Returns the bounding rectangle of this sprite.
Useful for cropping the sprite from the sheet.
height
Sourceheight=(height : Int32)
Sourceindex
Sourceindex=(index : Int32)
Sourcewidth
Sourcewidth=(width : Int32)
Sourcex=(x : Int32)
Sourcey=(y : Int32)
Source