Logo Search packages:      
Sourcecode: djvulibre version File versions

GPixel Struct Reference

#include <GPixmap.h>

List of all members.


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 111 of file 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 }
 GPixel::BLACK is initialized to rgb:0/0/0#.
static const GPixel BLUE = { 255, 0, 0 }
 GPixel::BLUE is initialized to rgb:0/0/255#.
static const GPixel GREEN = { 0, 255, 0 }
 GPixel::GREEN is initialized to rgb:0/255/0#.
static const GPixel RED = { 0, 0, 255 }
 GPixel::RED is initialized to rgb:255/0/0#.
static const GPixel WHITE = { 255, 255, 255 }
 GPixel::WHITE is initialized to rgb: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)

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

Generated by  Doxygen 1.6.0   Back to index