Main Page | Class Hierarchy | Class List | Class Members

Pixel32 Class Reference

List of all members.

Public Member Functions

 Pixel32 (void)
 Pixel32 (const Pixel &p)

Public Attributes

unsigned char r
unsigned char g
unsigned char b
unsigned char a

Detailed Description

This structure represents a 4-channel, 32-bit, RGBA pixel.


Constructor & Destructor Documentation

Pixel32::Pixel32 void   ) 
 

This constructor instantiates a pixel with 0 for the red, green and blue components, and 255 for the alpha.

Pixel32::Pixel32 const Pixel p  ) 
 

This constructor instantiates a pixel by transforming the input red, green, blue, and alpha components from floating points in the range [0,1] to integer values in the range [0,255]


Member Data Documentation

unsigned char Pixel32::a
 

The red, green, blue, and alpha components of the pixel

unsigned char Pixel32::b
 

The red, green, blue, and alpha components of the pixel

unsigned char Pixel32::g
 

The red, green, blue, and alpha components of the pixel

unsigned char Pixel32::r
 

The red, green, blue, and alpha components of the pixel


Generated on Wed Feb 22 15:44:23 2006 for Assignment 2 by  doxygen 1.4.1