Static methods

staticfromBytes(bytes:Bytes, ?ase:Ase):Frame

Parse bytes to create a new frame

Parameters:

bytes

bytes to parse

ase

(optional) ase.Ase instance to attach the frame to

Constructor

new(?header:FrameHeader, ?ase:Ase)

Variables

@:value([])finalcels:Map<Int, Cel> = []

@:value([])chunkTypes:Map<ChunkType, Array<Chunk>> = []

@:value([])chunks:Array<Chunk> = []

read onlysize:Int

Frame size in bytes

Methods

cel(layerIndex:Int, ?replace:Cel):Cel

Access a cel at specific layer

Parameters:

layerIndex

Index of the layer

replace

Place this cel at a specific layer

clearCel(layerIndex:Int):Void

createCel(layerIndex:Int, width:Int, height:Int, ?xPosition:Int, ?yPosition:Int):Cel

Create Cel

Parameters:

layerIndex

Index of the layer to create new cel on

width

Cel width

height

Cel height

xPosition

Cel x position

yPosition

Cel y position

linkCel(layerIndex:Int, frameIndex:Int):Cel

Create a linked cel

Parameters:

layerIndex
null

frameIndex