mp_traversals
Terrible Traversals
|
Animation class—used to create animated images from a sequence of PNG objects as frames of the animation. More...
#include <Animation.h>
Public Member Functions | |
void | addFrame (const PNG &img) |
Adds a frame to the animation. More... | |
void | write (const std::string &filename) |
Writes the animation to the file name specified. More... | |
PNG | getFrame (unsigned index) |
Returns a frame at a specific index. More... | |
unsigned | frameCount () |
Returns the number of frames currently in the animation. More... | |
Animation class—used to create animated images from a sequence of PNG objects as frames of the animation.
void Animation::addFrame | ( | const PNG & | img | ) |
Adds a frame to the animation.
img | The image to be added. |
unsigned Animation::frameCount | ( | ) |
Returns the number of frames currently in the animation.
PNG Animation::getFrame | ( | unsigned | index | ) |
Returns a frame at a specific index.
index | The zero-based index frame to return |
void Animation::write | ( | const std::string & | filename | ) |
Writes the animation to the file name specified.
filename | The name of the file to be written to. |