The OpenD Programming Language

ApngAnimation

Class that represents an apng file.

Constructors

this
this()

This is an uninitialized thing, you're responsible for filling in all data yourself. You probably don't want to use this except for use in the factory function you pass to readApng.

this
this(int width, int height, Color[] palette)

If palette is null, it is a true color image. If it has data, it is indexed.

Members

Functions

addFrame
ApngFrame addFrame(int width, int height)

Adds a frame with the given size and returns the object. You can change other values in the frameControlChunk on it and get the data bytes out of there.

createOtherChunksWhenSaving
void createOtherChunksWhenSaving(void delegate(Chunk c) sink)

Hook for subclasses to add custom chunks to the png file as it is written by writeApngToData and writeApngToFile.

handleOtherChunkWhenLoading
void handleOtherChunkWhenLoading(Chunk chunk)

Hook for subclasses to handle custom chunks in the png file as it is loaded by readApng.

renderer
ApngRenderBuffer renderer()

Meta