Class CellChunk
Parsed representation of an Aseprite Cell chunk.
Syntax
public class CellChunk : BaseChunk, IDisposable
Properties
cellType
Declaration
public CellTypes cellType { get; }
Property Value
chunkType
Declaration
public override ChunkTypes chunkType { get; }
Property Value
Overrides
dataChunk
User data associated with the cell.
Declaration
public UserDataChunk dataChunk { get; set; }
Property Value
height
The height of the cell in pixels.
Declaration
public ushort height { get; }
Property Value
image
The image data of the cell.
Declaration
public NativeArray<Color32> image { get; }
Property Value
layerIndex
The layer index is a number to identify a layer in the sprite.
Layers are numbered in the same order as Layer Chunks appear in the file.
Declaration
public ushort layerIndex { get; }
Property Value
linkedToFrame
The frame index of the cell (Only available for Linked Cells).
Declaration
public int linkedToFrame { get; }
Property Value
opacity
Opacity level of the cell (0 = transparent, 255 = opaque).
Declaration
public byte opacity { get; }
Property Value
posX
The Cell's X position on the canvas.
Declaration
public short posX { get; }
Property Value
posY
The Cell's Y position on the canvas.
Declaration
public short posY { get; }
Property Value
width
The width of the cell in pixels.
Declaration
public ushort width { get; }
Property Value
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
InternalRead(BinaryReader)
Declaration
protected override void InternalRead(BinaryReader reader)
Parameters
Overrides