Animation class—used to create animated images from a sequence of PNG objects as frames of the animation.  
 More...
#include <Animation.h>
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 
◆ addFrame()
      
        
          | void Animation::addFrame | ( | const PNG & | img | ) |  | 
      
 
Adds a frame to the animation. 
- Parameters
- 
  
    | img | The image to be added. |  
 
 
 
◆ exists()
  
  | 
        
          | bool Animation::exists | ( | const string & | path | ) |  |  | private | 
 
 
◆ frameCount()
      
        
          | unsigned Animation::frameCount | ( |  | ) |  | 
      
 
Returns the number of frames currently in the animation. 
 
 
◆ getFrame()
      
        
          | PNG Animation::getFrame | ( | unsigned | index | ) |  | 
      
 
Returns a frame at a specific index. 
- Parameters
- 
  
    | index | The zero-based index frame to return |  
 
 
 
◆ getString()
  
  | 
        
          | string Animation::getString | ( | int | i, |  
          |  |  | int | padToSameLengthAs |  
          |  | ) |  |  |  | private | 
 
 
◆ to_string()
template<typename T > 
  
  | 
        
          | string Animation::to_string | ( | const T & | value | ) |  |  | inlineprivate | 
 
 
◆ write()
Writes the animation to the file name specified. 
- Parameters
- 
  
    | filename | The name of the file to be written to. |  
 
 
 
◆ frames
The documentation for this class was generated from the following files: