A sprite frame is essentially a single graphic which contains multiple frames. An SPA file is a set of sprite frames.
Public Member Functions | |
SpriteFrame (SPA animation, int frameCount) | |
Creates a new sprite which belongs to the given animation and will hold the given number of frames. More... | |
void | AddFrame (Frame frame, int frameIndex) |
Adds the given frame to this sprite. More... | |
void | Output (string tempFile, CompressionMode compression, BinaryWriter sw) |
Writes this sprite out into the given writer. More... | |
Public Attributes | |
Bitmap | Image |
The bitmap that will actually be output. More... | |
Graphics | Canvas |
The graphic that the frames will be written to. More... | |
int | FrameCount |
How many frames of the animation this sprite holds. More... | |
SPA | ParentAnimation |
The animation this sprite belongs to. More... | |
|
inline |
Creates a new sprite which belongs to the given animation and will hold the given number of frames.
animation | The parent animation this sprite will belong to. |
frameCount | The number of frames this sprite will hold. |
|
inline |
Adds the given frame to this sprite.
frame | The frame to add to the sprite. |
frameIndex | The index/position to add it to. |
|
inline |
Writes this sprite out into the given writer.
tempFile | The path to a temp file that this sprite can write to for compression. |
compression | The compression mode to use. |
sw | The writer the sprite will be written to. |
Graphics SPABuilder.SpriteFrame.Canvas |
The graphic that the frames will be written to.
int SPABuilder.SpriteFrame.FrameCount |
How many frames of the animation this sprite holds.
Bitmap SPABuilder.SpriteFrame.Image |
The bitmap that will actually be output.
SPA SPABuilder.SpriteFrame.ParentAnimation |
The animation this sprite belongs to.