lib
KoColor Class Reference
List of all members.Detailed Description
Definition at line 26 of file koColor.h.
Public Types | |
csIndexed | |
csRGB | |
csHSV | |
csCMYK | |
csLab | |
enum | cSpace { csIndexed, csRGB, csHSV, csCMYK, csLab } |
Public Member Functions | |
KoColor () | |
KoColor (int a, int b, int c, cSpace m=csRGB) | |
KoColor (int c, int m, int y, int k) | |
KoColor (const QString &name) | |
KoColor (const QColor &c) | |
cSpace | native () const |
int | R () const |
int | G () const |
int | B () const |
int | H () const |
int | S () const |
int | V () const |
int | L () const |
int | a () const |
int | b () const |
int | C () const |
int | M () const |
int | Y () const |
int | K () const |
void | rgb (int *R, int *G, int *B) const |
void | hsv (int *H, int *S, int *V) const |
void | lab (int *L, int *a, int *b) const |
void | cmyk (int *C, int *M, int *Y, int *K) const |
QString | name () const |
QColor | color () const |
void | setRGB (int R, int G, int B) |
void | setHSV (int H, int S, int V) |
void | setLab (int L, int a, int b) |
void | setCMYK (int C, int M, int Y, int K) |
void | setNamedColor (const QString &name) |
void | setColor (const QColor &c) |
Static Public Member Functions | |
static void | RGBtoHSV (int R, int G, int B, int *H, int *S, int *V) |
static void | RGBtoLAB (int R, int G, int B, int *L, int *a, int *b) |
static void | RGBtoCMYK (int R, int G, int B, int *C, int *M, int *Y, int *K) |
static void | HSVtoRGB (int H, int S, int V, int *R, int *G, int *B) |
static void | HSVtoLAB (int H, int S, int V, int *L, int *a, int *b) |
static void | HSVtoCMYK (int H, int S, int V, int *C, int *M, int *Y, int *K) |
static void | LABtoRGB (int L, int a, int b, int *R, int *G, int *B) |
static void | LABtoHSV (int L, int a, int b, int *H, int *S, int *V) |
static void | LABtoCMYK (int L, int a, int b, int *C, int *M, int *Y, int *K) |
static void | CMYKtoRGB (int C, int M, int Y, int K, int *R, int *G, int *B) |
static void | CMYKtoHSV (int C, int M, int Y, int K, int *H, int *S, int *V) |
static void | CMYKtoLAB (int C, int M, int Y, int K, int *L, int *a, int *b) |
static const KoColor | black () |
static const KoColor | white () |
static const KoColor | gray () |
static const KoColor | lightGray () |
static const KoColor | darkGray () |
static const KoColor | red () |
static const KoColor | darkRed () |
static const KoColor | green () |
static const KoColor | darkGreen () |
static const KoColor | blue () |
static const KoColor | darkBlue () |
static const KoColor | cyan () |
static const KoColor | darkCyan () |
static const KoColor | magenta () |
static const KoColor | darkMagenta () |
static const KoColor | yellow () |
static const KoColor | darkYellow () |
Protected Member Functions | |
int | hex2int (QChar c) |
void | calcRGB () const |
void | calcHSV () const |
void | calcCMYK () const |
void | calcLAB () const |
void | rgbChanged () const |
void | hsvChanged () const |
void | cmykChanged () const |
void | labChanged () const |
The documentation for this class was generated from the following files: