| Package | com.pblabs.rendering2D.spritesheet |
| Class | public class FixedSizeDivider |
| Inheritance | FixedSizeDivider Object |
| Implements | ISpriteSheetDivider |
| Property | Defined By | ||
|---|---|---|---|
| frameCount : int [read-only]
How many frames are in this sprite sheet?
| FixedSizeDivider | ||
| height : int = 32
The height of each frame. | FixedSizeDivider | ||
| horizontalSpacing : int = 0
The horizonal spacing between frames
| FixedSizeDivider | ||
| owningSheet : SpriteSheetComponent [write-only]
Many times you want to infer information about frames based on data
from the sprite sheet. | FixedSizeDivider | ||
| verticalSpacing : int = 0
The vertical spacing between frames
| FixedSizeDivider | ||
| width : int = 32
The width of each frame. | FixedSizeDivider | ||
| Method | Defined By | ||
|---|---|---|---|
The MultiSpriteSheetHelper has to be able to clone dividers. | FixedSizeDivider | ||
getFrameArea(index:int):Rectangle
Return the size of a frame, given the desired index and the source
image's dimensions. | FixedSizeDivider | ||
| frameCount | property |
frameCount:int [read-only] How many frames are in this sprite sheet?
public function get frameCount():int| height | property |
public var height:int = 32The height of each frame.
| horizontalSpacing | property |
public var horizontalSpacing:int = 0The horizonal spacing between frames
| owningSheet | property |
owningSheet:SpriteSheetComponent [write-only] Many times you want to infer information about frames based on data from the sprite sheet. When the divider is assigned to a sprite sheet, the sprite sheet passes itself to OwningSheet so you can store it and get information from it.
public function set owningSheet(value:SpriteSheetComponent):void| verticalSpacing | property |
public var verticalSpacing:int = 0The vertical spacing between frames
| width | property |
public var width:int = 32The width of each frame.
| clone | () | method |
public function clone():ISpriteSheetDividerThe MultiSpriteSheetHelper has to be able to clone dividers. So we have a Clone method.
ReturnsISpriteSheetDivider |
| getFrameArea | () | method |
public function getFrameArea(index:int):RectangleReturn the size of a frame, given the desired index and the source image's dimensions.
Parameters
index:int |
Rectangle |