SkyGI::Color Struct Reference

List of all members.

Public Member Functions

 Color ()
 Color (int r, int g, int b, int a=0)
 Color (unsigned int uiARGB)
 Color (int x, int y, int z, ColorSpec enumColorSpec, int a=0)
Color Lighter (float factor=2.0) const
Color Darker (float factor=2.0) const
 operator unsigned int () const
void SetRGB (int r, int g, int b, int a=0)
void SetHSV (int h, int s, int v, int a=0)
void GetRGB (int &r, int &g, int &b) const
void GetHSV (int &h, int &s, int &v) const

Static Public Member Functions

static String GetColorspaceString (Colorspace nColorspace)

Public Attributes

unsigned char red
unsigned char green
unsigned char blue
unsigned char alpha

Constructor & Destructor Documentation

SkyGI::Color::Color (  )  [inline]

SkyGI::Color::Color ( int  r,
int  g,
int  b,
int  a = 0 
) [inline]

SkyGI::Color::Color ( unsigned int  uiARGB  )  [inline]

SkyGI::Color::Color ( int  x,
int  y,
int  z,
ColorSpec  enumColorSpec,
int  a = 0 
) [inline]


Member Function Documentation

Color Color::Lighter ( float  factor = 2.0  )  const

Color Color::Darker ( float  factor = 2.0  )  const

SkyGI::Color::operator unsigned int (  )  const [inline]

void Color::SetRGB ( int  r,
int  g,
int  b,
int  a = 0 
)

Set color using RGB components

Description:
  • r must be between 0 and 255
  • g must be between 0 and 255
  • b must be between 0 and 255
  • a must be between 0 and 255

void Color::SetHSV ( int  h,
int  s,
int  v,
int  a = 0 
)

Set color using HSV components

Description:
  • h must be between 0 and 360
  • s must be between 0 and 100
  • v must be between 0 and 255
  • a must be between 0 and 255

void Color::GetRGB ( int &  r,
int &  g,
int &  b 
) const

void Color::GetHSV ( int &  h,
int &  s,
int &  v 
) const

static String SkyGI::Color::GetColorspaceString ( Colorspace  nColorspace  )  [inline, static]


Member Data Documentation

unsigned char SkyGI::Color::red

unsigned char SkyGI::Color::green

unsigned char SkyGI::Color::blue

unsigned char SkyGI::Color::alpha


Generated on Thu Dec 13 18:14:16 2007 for SkyGI by  doxygen 1.5.1-p1