Frame

ase.Frame (Class)

Static Members

fromBytes(bytes: haxe.io.Bytes, ?ase: Ase): Frame

Parse bytes to create a new frame

Name Type Default Description
bytes haxe.io.Bytes bytes to parse
ase Ase (optional) (optional) ase.Ase instance to attach the frame to
Returns
Frame

Instance Members

ase: Ase



chunkTypes: Map

duration: Int

cels: Map

size: Int

Frame size in bytes


addChunk(chunk: ase.chunks.Chunk): Void
Name Type
chunk ase.chunks.Chunk

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

Access a cel at specific layer

Name Type Default Description
layerIndex Int Index of the layer
replace Cel (optional) Place this cel at a specific layer
Returns
Cel

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

Create Cel

Name Type Default Description
layerIndex Int Index of the layer to create new cel on
width Int Cel width
height Int Cel height
xPosition Int (optional) Cel x position
yPosition Int (optional) Cel y position
Returns
Cel

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

Create a linked cel

Name Type Description
layerIndex Int @param frameIndex
frameIndex Int
Returns
Cel

clearCel(layerIndex: Int): Void
Name Type
layerIndex Int

createHeader(): Void

removeChunk(chunk: ase.chunks.Chunk): Void
Name Type
chunk ase.chunks.Chunk

Name Type Default
out haxe.io.BytesOutput (optional)
Returns
haxe.io.Bytes

new(?header: FrameHeader, ?ase: Ase): Void
Name Type Default
header FrameHeader (optional)
ase Ase (optional)

Private Members