Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Image Class Reference
[Graphics]

List of all members.


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 Imageoperator= (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

Author:
Mattias Gustavsson
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

Enumerator:
Rotate_0 
Rotate_90 
Rotate_180 
Rotate_270 
Mirror_X 
Mirror_Y 
Orientations_Count 

Definition at line 27 of file Image.h.


Constructor & Destructor Documentation

Image::Image (  ) 

Definition at line 13 of file Image.cpp.

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

Definition at line 25 of file Image.cpp.

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

Definition at line 55 of file Image.cpp.

Image::Image ( int  width,
int  height 
)

Definition at line 84 of file Image.cpp.

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

Definition at line 99 of file Image.cpp.

Image::Image ( const Image image  ) 

Definition at line 118 of file Image.cpp.

Image::Image ( const Bitmap bitmap  ) 

Definition at line 139 of file Image.cpp.

Image::~Image (  ) 

Definition at line 162 of file Image.cpp.


Member Function Documentation

const Image & Image::operator= ( const Image image  ) 

Definition at line 173 of file Image.cpp.

void Image::SetOrientation ( Orientation  orientation  ) 

Definition at line 201 of file Image.cpp.

int Image::GetWidth (  )  const

Definition at line 208 of file Image.cpp.

int Image::GetHeight (  )  const

Definition at line 233 of file Image.cpp.

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

Definition at line 260 of file Image.cpp.

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

Definition at line 376 of file Image.cpp.

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

Definition at line 320 of file Image.cpp.

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

Definition at line 433 of file Image.cpp.

int Image::GetCelCount (  )  const

Definition at line 488 of file Image.cpp.

float Image::GetCelDelay ( int  cel  )  const

Definition at line 496 of file Image.cpp.

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

Definition at line 510 of file Image.cpp.

unsigned int * Image::GetPointer (  )  const

Definition at line 539 of file Image.cpp.

template<class ImageFormat >
void Image::Save ( const Filename filename  ) 

Definition at line 74 of file Image.h.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.