AnimEngine
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
Image Class Reference
Inheritance diagram for Image:
Inheritance graph
[legend]

Public Types

enum  ImageWriteFormat { PNG, HDR, JPEG }
 

Public Member Functions

 Image (void *const data, int w, int h, int channels, size_t component_size=sizeof(uint8_t))
 
 Image (int w, int h, int channels, size_t component_size=sizeof(uint8_t))
 
virtual void _free_image_data ()
 
int getWidth () const
 
int getHeight () const
 
int getChannels () const
 
size_t getComponentSize () const
 
size_t getTotalDataSize () const
 
int writeFile (const string &path) const
 
int writeFile (const char *path) const
 
int writeFileFormat (const string &path, ImageWriteFormat format) const
 
int writeFileFormat (const char *path, ImageWriteFormat format) const
 

Public Attributes

uint8_t * data = nullptr
 

Protected Attributes

int channels
 
int width
 
int height
 
size_t component_size
 

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