Image Class Reference
[Graphics]
Public Types | |
| enum | Orientation { Rotate_0, Rotate_90, Rotate_180, Rotate_270, Mirror_X, Mirror_Y, Orientations_Count } |
Public Member Functions | |
| Image () | |
| Image (const Asset &asset, Orientation orientation=Rotate_0) | |
| Image (const Asset &asset, int celCount, Orientation orientation=Rotate_0) | |
| Image (int width, int height) | |
| Image (int width, int height, int celCount) | |
| Image (const Image &image) | |
| Image (const Bitmap &bitmap) | |
| ~Image () | |
| const Image & | operator= (const Image &image) |
| void | SetOrientation (Orientation orientation) |
| int | GetWidth () const |
| int | GetHeight () const |
| unsigned int | GetPixel (int x, int y) const |
| unsigned int | GetPixel (int cel, int x, int y) const |
| void | SetPixel (int x, int y, unsigned int color) |
| void | SetPixel (int cel, int x, int y, unsigned int color) |
| int | GetCelCount () const |
| float | GetCelDelay (int cel) const |
| void | AdjustBrightness (float redMultiplier, float greenMultiplier, float blueMultiplier) |
| unsigned int * | GetPointer () const |
| template<class ImageFormat > | |
| void | Save (const Filename &filename) |
Detailed Description
- Todo:
- More transformations/manipulation (contrast, saturation, hue, blur, sharpen, resize...)
Get rid of orientation stuff - it goes in the bitmap instead
Definition at line 24 of file Image.h.
Member Enumeration Documentation
| enum Image::Orientation |
Constructor & Destructor Documentation
| Image::Image | ( | const Asset & | asset, | |
| Orientation | orientation = Rotate_0 | |||
| ) |
| Image::Image | ( | const Asset & | asset, | |
| int | celCount, | |||
| Orientation | orientation = Rotate_0 | |||
| ) |
Member Function Documentation
| void Image::SetOrientation | ( | Orientation | orientation | ) |
| unsigned int Image::GetPixel | ( | int | cel, | |
| int | x, | |||
| int | y | |||
| ) | const |
| void Image::SetPixel | ( | int | cel, | |
| int | x, | |||
| int | y, | |||
| unsigned int | color | |||
| ) |
| void Image::AdjustBrightness | ( | float | redMultiplier, | |
| float | greenMultiplier, | |||
| float | blueMultiplier | |||
| ) |
template<class ImageFormat >
| void Image::Save | ( | const Filename & | filename | ) |
Reproduction/republishing of any material on this site without permission is strictly prohibited.
