class GBitmapclass GRectclass ByteStreamstruct GPixel

Color pixel as a RGB triple.

[more]unsigned char b
Blue component.
[more]unsigned char g
Green component.
[more]unsigned char r
Red component.
[more]friend int operator==(const GPixel & p1, const GPixel & p2)
Returns true iff colors are identical.
[more]friend int operator!=(const GPixel & p1, const GPixel & p2)
Returns true iff colors are different.
[more]friend unsigned int hash(const GPixel &p)
Returns a hash code for the color.
[more] Predefined colors.


Documentation

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.
ounsigned char b
Blue component.

ounsigned char g
Green component.

ounsigned char r
Red component.

ofriend int operator==(const GPixel & p1, const GPixel & p2)
Returns true iff colors are identical.

ofriend int operator!=(const GPixel & p1, const GPixel & p2)
Returns true iff colors are different.

ofriend unsigned int hash(const GPixel &p)
Returns a hash code for the color.

o Predefined colors.

ostatic const GPixel WHITE
GPixel::WHITE is initialized to rgb:255/255/255.

ostatic const GPixel BLACK
GPixel::BLACK is initialized to rgb:0/0/0.

ostatic const GPixel BLUE
GPixel::BLUE is initialized to rgb:0/0/255.

ostatic const GPixel GREEN
GPixel::GREEN is initialized to rgb:0/255/0.

ostatic const GPixel RED
GPixel::RED is initialized to rgb:255/0/0.

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.