Image Class Reference
[Graphics]
List of all members.
Detailed Description
- Author:
- Mattias Gustavsson
Definition at line 21 of file Image.h.
|
Public Types |
| enum | Orientation {
Rotate_0,
Rotate_90,
Rotate_180,
Rotate_270,
Mirror_X,
Mirror_Y,
Orientations_Count
} |
Public Member Functions |
| | 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 () |
| 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) |
Member Enumeration Documentation
- Enumerator:
-
| Rotate_0 |
|
| Rotate_90 |
|
| Rotate_180 |
|
| Rotate_270 |
|
| Mirror_X |
|
| Mirror_Y |
|
| Orientations_Count |
|
Definition at line 24 of file Image.h.
Constructor & Destructor Documentation
| Image::Image |
( |
const Asset & |
asset, |
|
|
int |
celCount, |
|
|
Orientation |
orientation = Rotate_0 | |
|
) |
| | |
| Image::Image |
( |
int |
width, |
|
|
int |
height | |
|
) |
| | |
| Image::Image |
( |
int |
width, |
|
|
int |
height, |
|
|
int |
celCount | |
|
) |
| | |
| Image::Image |
( |
const Image & |
image |
) |
|
Member Function Documentation
| int Image::GetWidth |
( |
|
) |
const |
| int Image::GetHeight |
( |
|
) |
const |
| unsigned int Image::GetPixel |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | const |
| unsigned int Image::GetPixel |
( |
int |
cel, |
|
|
int |
x, |
|
|
int |
y | |
|
) |
| | const |
| void Image::SetPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
color | |
|
) |
| | |
| void Image::SetPixel |
( |
int |
cel, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
color | |
|
) |
| | |
| int Image::GetCelCount |
( |
|
) |
const |
| float Image::GetCelDelay |
( |
int |
cel |
) |
const |
| void Image::AdjustBrightness |
( |
float |
redMultiplier, |
|
|
float |
greenMultiplier, |
|
|
float |
blueMultiplier | |
|
) |
| | |
|