MP4
DFS and BFS using Stacks and Queues
Animation Class Reference

Animation class—used to create animated images from a sequence of PNG objects as frames of the animation. More...

#include "Animation.h"

+ Collaboration diagram for Animation:

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...
 

Detailed Description

Animation class—used to create animated images from a sequence of PNG objects as frames of the animation.

Author
Wade Fagen-Ulmschneider
Date
Fall 2017
Author
Jack Toole
Date
Fall 2011

Member Function Documentation

void Animation::addFrame ( const PNG &  img)

Adds a frame to the animation.

Parameters
imgThe image to be added.
void Animation::write ( const std::string filename)

Writes the animation to the file name specified.

Parameters
filenameThe name of the file to be written to.
PNG Animation::getFrame ( unsigned  index)

Returns a frame at a specific index.

Parameters
indexThe zero-based index frame to return
unsigned Animation::frameCount ( )

Returns the number of frames currently in the animation.


The documentation for this class was generated from the following files: