#include <color.h>
Public Methods | |
Color (const unsigned char R=0, const unsigned char G=0, const unsigned char B=0) | |
Color & | operator+= (const Color &a) |
Color & | operator-= (const Color &a) |
Color & | operator *= (double a) |
Color & | operator/= (double a) |
Color & | operator= (const Color &a) |
void | fromXYZ (double x, double y, double z) |
void | toXYZ (double &x, double &y, double &z) |
void | fromYIQ (double q, double i, double y) |
void | toYIQ (double &q, double &i, double &y) |
void | fromHSV (double h, double s, double v) |
void | toHSV (double &h, double &s, double &v) |
Public Attributes | |
unsigned char | r |
unsigned char | g |
unsigned char | b |
Friends | |
Color | operator * (const double d, const Color &a) |
Color | operator * (const Color &a, const Color &b) |
Color | operator+ (const Color &a, const Color &b) |
ostream & | operator<< (ostream &os, const Color &point) |
istream & | operator>> (istream &os, Color &point) |
Defines a class containing the RGB component of a color pixel. Each component is an unsigned char valid for the range [0..255].
Definition at line 45 of file color.h.
|
from the HSV color space.
|
|
transforms from the XYZ color space to the RGB colorspace.
|
|
transforms from the YIQ color space to the RGB colorspace.
This is the same color space used by NTSC
|
|
to the HSV color space.
|
|
transforms to the YIQ color space to the RGB colorspace.
This is the same color space used by NTSC
|
|
The output operator of a color to an ostream.
|
|
the input operator of a color from an istream.
Initialize a color from an istream
|