|
| ScColor (void) |
| Constructs a ScColor with 4 Components set to 0.
|
|
| ScColor (int c, int m, int y, int k) |
| Constructs a ScColor with 4 Components in the range from 0 - 255.
|
|
| ScColor (int r, int g, int b) |
| Constructs a RGBColor with 3 Components in the range from 0 - 255.
|
|
| ScColor (double l, double a, double b) |
| Constructs a LabColor with 3 Components.
|
|
bool | operator== (const ScColor &other) const |
|
void | setColor (ScribusDoc *doc, const QString &name) |
| Set color from an existing document.
|
|
void | setColor (int c, int m, int y, int k) |
| Same as the Constructor but for an existing Color.
|
|
void | setColor (double l, double a, double b) |
| Same as the Constructor but for an existing Color.
|
|
void | setColorRGB (int r, int g, int b) |
| Computes a ScColor from an RGB-Color Applies Gray-Component-Removal to the resulting ScColor or if color management is enabled, an approriate transform.
|
|
colorModel | getColorModel () const |
| get the color model
|
|
void | fromQColor (QColor color) |
| Computes a ScColor for a QColor.
|
|
void | getRawRGBColor (int *r, int *g, int *b) const |
| Returns the RGB color Must not be called if color is the None Color.
|
|
QColor | getRawRGBColor () const |
|
void | getCMYK (int *c, int *m, int *y, int *k) const |
| Returns the 4 Values that form an ScColor. Returns meaningful results only if color is a cmyk color. Must not be called if color is the None Color.
|
|
void | getRGB (int *r, int *g, int *b) const |
| Returns the 3 Values that form an RGBColor Returns meaningful results only if color is a rgb color. Must not be called if color is the None Color.
|
|
void | getLab (double *L, double *a, double *b) const |
| Returns the 3 Values that form an LabColor Returns meaningful results only if color is a Lab color. Must not be called if color is the None Color.
|
|
QString | name () |
| Returns the ScColor as an Hex-String in the Form #CCYYMMKK for a CMYK color or ##RRGGBB for a RGB color. For the None color return the "None" string.
|
|
QString | nameRGB (const ScribusDoc *doc=NULL) |
| Returns the ScColor as an Hex-String in the Form #RRGGBB If doc member is not specified, return meaningful result only for RGB colors.
|
|
QString | nameCMYK (const ScribusDoc *doc=NULL) |
| Returns the ScColor as an Hex-String in the Form #CCYYMMKK If doc member is not specified, return meaningful result only for CMYK colors.
|
|
void | setNamedColor (QString nam) |
| Sets the Values of a color from an Hex-String in the Form #CCMMYYKK or #RRGGBB.
|
|
bool | isSpotColor () const |
| If the color is a spot color.
|
|
void | setSpotColor (bool s) |
| Set a color to be a spot color or not. No effect if color is the None color.
|
|
bool | isRegistrationColor () const |
| If the color is a registration color.
|
|
void | setRegistrationColor (bool s) |
| Set a color to be a registration color or not. No effect if color is the None color.
|
|