Assignments
Assignments
|
#include <image.h>
Public Member Functions | |
Pixel32 (void) | |
Public Attributes | |
unsigned char | r |
unsigned char | g |
unsigned char | b |
unsigned char | a |
This class represents a 4-channel, 32-bit, RGBA pixel.
Pixel32::Pixel32 | ( | void | ) |
The default constructor instantiates a pixel with 0 for the red, green and blue components, and 255 for the alpha.
unsigned char Image::Pixel32::a |
The alpha component of the pixel
unsigned char Image::Pixel32::b |
The blue component of the pixel
unsigned char Image::Pixel32::g |
The green component of the pixel
unsigned char Image::Pixel32::r |
The red component of the pixel