kviewshell
GPixel Struct Reference
Color pixel as a RGB triple. More...
#include <GPixmap.h>
Public Attributes | |
unsigned char | b |
unsigned char | g |
unsigned char | r |
Static Public Attributes | |
Predefined colors. | |
static const GPixel | BLACK = { 0, 0, 0 } |
static const GPixel | BLUE = { 255, 0, 0 } |
static const GPixel | GREEN = { 0, 255, 0 } |
static const GPixel | RED = { 0, 0, 255 } |
static const GPixel | WHITE = { 255, 255, 255 } |
Friends | |
unsigned int | hash (const GPixel &p) |
int | operator!= (const GPixel &p1, const GPixel &p2) |
int | operator== (const GPixel &p1, const GPixel &p2) |
Detailed Description
Color pixel as a RGB triple.The colors are represented using three bytes named r#, g# and b#. The value of these bytes represent additive amounts of light. Color white is represented by setting all three bytes to #255#. Color black is represented by setting all three bytes to #0#. This convention should not be confused with the convention adopted for class {GBitmap} where the pixel values represent an ink level.
Definition at line 109 of file GPixmap.h.
Friends And Related Function Documentation
unsigned int hash | ( | const GPixel & | p | ) | [friend] |
Member Data Documentation
const GPixel GPixel::BLACK = { 0, 0, 0 } [static] |
const GPixel GPixel::BLUE = { 255, 0, 0 } [static] |
const GPixel GPixel::GREEN = { 0, 255, 0 } [static] |
const GPixel GPixel::RED = { 0, 0, 255 } [static] |
const GPixel GPixel::WHITE = { 255, 255, 255 } [static] |
The documentation for this struct was generated from the following files: