Public Types | Public Member Functions
Tonido::Data::Image Class Reference

Manages Image Types (currently JPEG, PNG) More...

List of all members.

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.

Detailed Description

Manages Image Types (currently JPEG, PNG)

A wrapper around some image manipulation routines. Currently handles JPEG, PNG image types.


Constructor & Destructor Documentation

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


Generated on Wed Oct 12 2011 21:46:53. © CodeLathe LLC 2007-2011. All Rights Reserved.