Manages Image Types (currently JPEG, PNG) More...
Public Types | |
| enum | ImageType { IT_JPEG = 0, IT_PNG } |
Public Member Functions | |
| Image (const std::string &a_fileToLoad) | |
| Contructor. | |
| Image (ImageType a_imageType, Data::RawData::SharedPtr &a_rawData) | |
| Contructor. | |
| ~Image () | |
| Destructor. | |
| int32_bt | getImageWidth () |
| Gets the image width. | |
| int32_bt | getImageHeight () |
| Gets the image height. | |
| ImageType | getImageType () |
| Gets the Image Type. | |
| bool | resizeImage (int32_bt a_width, int32_bt a_height) |
| Resizes the image to the new height/width. | |
| bool | saveToFile (const std::string &a_fileName) |
| Saves to a specific file, the file extension needs to be provided. | |
| bool | saveToRawData (ImageType a_imageType, Data::RawData::SharedPtr &a_rawData) |
| Saves the image to a binary raw data object. | |
| bool | rotateImage (int angle) |
| Rotates the image. | |
Manages Image Types (currently JPEG, PNG)
A wrapper around some image manipulation routines. Currently handles JPEG, PNG image types.
| Tonido::Data::Image::Image | ( | const std::string & | a_fileToLoad | ) |
Contructor.
Just create object from file, the file extension determines type
| Tonido::Data::Image::Image | ( | ImageType | a_imageType, |
| Data::RawData::SharedPtr & | a_rawData | ||
| ) |
Contructor.
Just create object from memory