My Project
Public Member Functions | Public Attributes | List of all members
Pixel32 Class Reference

#include <image.h>

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::r

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


The documentation for this class was generated from the following files: