Forums
This is the online documentation for Colossus Entertainments Pixie Game Engine

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,
Orientation  orientation = Rotate_0 
)

Definition at line 12 of file Image.cpp.

Image::Image ( const Asset asset,
int  celCount,
Orientation  orientation = Rotate_0 
)

Definition at line 49 of file Image.cpp.

Image::Image ( int  width,
int  height 
)

Definition at line 85 of file Image.cpp.

Image::Image ( int  width,
int  height,
int  celCount 
)

Definition at line 100 of file Image.cpp.

Image::Image ( const Image image  ) 

Definition at line 115 of file Image.cpp.

Image::~Image (  ) 

Definition at line 133 of file Image.cpp.


Member Function Documentation

void Image::SetOrientation ( Orientation  orientation  ) 

Definition at line 141 of file Image.cpp.

int Image::GetWidth (  )  const

Definition at line 148 of file Image.cpp.

int Image::GetHeight (  )  const

Definition at line 173 of file Image.cpp.

unsigned int Image::GetPixel ( int  x,
int  y 
) const

Definition at line 200 of file Image.cpp.

unsigned int Image::GetPixel ( int  cel,
int  x,
int  y 
) const

Definition at line 298 of file Image.cpp.

void Image::SetPixel ( int  x,
int  y,
unsigned int  color 
)

Definition at line 249 of file Image.cpp.

void Image::SetPixel ( int  cel,
int  x,
int  y,
unsigned int  color 
)

Definition at line 346 of file Image.cpp.

int Image::GetCelCount (  )  const

Definition at line 394 of file Image.cpp.

float Image::GetCelDelay ( int  cel  )  const

Definition at line 402 of file Image.cpp.

void Image::AdjustBrightness ( float  redMultiplier,
float  greenMultiplier,
float  blueMultiplier 
)

Definition at line 411 of file Image.cpp.