| Package | vegas.display |
| Class | public class SpriteSheet |
| Inheritance | SpriteSheet Object |
| Property | Defined By | ||
|---|---|---|---|
| area : Rectangle
Optional Rectangle reference to defines in the bitmapdata the spritesheet area. | SpriteSheet | ||
| bitmapData : BitmapData [read-only]
The internal BitmapData reference of this SpriteSheet. | SpriteSheet | ||
| tileHeight : uint [read-only]
Indicates the height in pixels of the tiles in the sprite sheet. | SpriteSheet | ||
| tileWidth : uint [read-only]
Indicates the width in pixels of the tiles in the sprite sheet. | SpriteSheet | ||
| Method | Defined By | ||
|---|---|---|---|
SpriteSheet(bitmapData:BitmapData, tileWidth:Number = 0, tileHeight:Number = 0, area:Rectangle = null)
Creates a new SpriteSheet instance. | SpriteSheet | ||
dispose():void
Dispose the SpriteSheet before delete it. | SpriteSheet | ||
getSpriteAt(index:int):BitmapData
Returns the sprite representation (BitmapData) at the specified index in the sprite sheet. | SpriteSheet | ||
| area | property |
area:RectangleOptional Rectangle reference to defines in the bitmapdata the spritesheet area. If this argument is null all the bitmapdata is used.
public function get area():Rectangle public function set area(value:Rectangle):void| bitmapData | property |
bitmapData:BitmapData [read-only] The internal BitmapData reference of this SpriteSheet.
public function get bitmapData():BitmapData| tileHeight | property |
tileHeight:uint [read-only] Indicates the height in pixels of the tiles in the sprite sheet.
public function get tileHeight():uint| tileWidth | property |
tileWidth:uint [read-only] Indicates the width in pixels of the tiles in the sprite sheet.
public function get tileWidth():uint| SpriteSheet | () | Constructor |
public function SpriteSheet(bitmapData:BitmapData, tileWidth:Number = 0, tileHeight:Number = 0, area:Rectangle = null)Creates a new SpriteSheet instance.
ParametersbitmapData:BitmapData — The BitmapData reference to create the sprite sheet.
| |
tileWidth:Number (default = 0) — The width of the tiles in the sprite sheet.
| |
tileHeight:Number (default = 0) — The height of the tiles in the sprite sheet.
| |
area:Rectangle (default = null) — Optional Rectangle to defines in the bitmapdata the spritesheet area. If this argument is null all the bitmapdata is used.
|
| dispose | () | method |
public function dispose():voidDispose the SpriteSheet before delete it.
| getSpriteAt | () | method |
public function getSpriteAt(index:int):BitmapDataReturns the sprite representation (BitmapData) at the specified index in the sprite sheet.
Parameters
index:int |
BitmapData — the sprite representation (BitmapData) at the specified index in the sprite sheet.
|