Class createjs.SpriteSheet.Frame
Defined in: sprite_sheet.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.SpriteSheet.Frame(image, rectangle, regX, regY, width, height)
A class representing a frame used by the createjs.SpriteSheet object.
|
Field Attributes | Field Name and Description |
---|---|
The source image of this frame.
|
|
The source rectangle of this frame.
|
|
The x position of the destination of this frame.
|
|
The y position of the destination of this frame.
|
Class Detail
createjs.SpriteSheet.Frame(image, rectangle, regX, regY, width, height)
A class representing a frame used by the createjs.SpriteSheet object.
- Parameters:
- {HTMLImageElement} image
- {createjs.Rectangle} rectangle
- {number} regX
- {number} regY
- {number} width
- {number} height
Field Detail
image
The source image of this frame.
rect
The source rectangle of this frame.
regX
The x position of the destination of this frame.
regY
The y position of the destination of this frame.