krita
KisColor Class Reference
#include <kis_color.h>
Detailed Description
A KisColor describes a color in a certain colorspace.
Definition at line 33 of file kis_color.h.
Public Member Functions | |
KisColor () | |
virtual | ~KisColor () |
KisColor (const QColor &color, KisColorSpace *colorSpace) | |
KisColor (const QColor &color, Q_UINT8 alpha, KisColorSpace *colorSpace) | |
KisColor (const Q_UINT8 *data, KisColorSpace *colorSpace) | |
KisColor (const KisColor &src, KisColorSpace *colorSpace) | |
KisColor (const KisColor &rhs) | |
KisColor & | operator= (const KisColor &) |
Q_UINT8 * | data () const |
KisColorSpace * | colorSpace () const |
KisProfile * | profile () const |
void | convertTo (KisColorSpace *cs) |
void | setColor (Q_UINT8 *data, KisColorSpace *colorSpace=0) |
void | toQColor (QColor *c) const |
void | toQColor (QColor *c, Q_UINT8 *opacity) const |
QColor | toQColor () const |
void | dump () const |
Constructor & Destructor Documentation
|
Create an empty KisColor. It will be valid, but also black and transparent.
Definition at line 27 of file kis_color.cc. |
|
Create a KisColor from a QColor. The QColor is immediately converted to native. The QColor is assumed to have the current monitor profile. Definition at line 38 of file kis_color.cc. |
|
Create a KisColor from a QColor. The QColor is immediately converted to native. The QColor is assumed to have the current monitor profile. Definition at line 51 of file kis_color.cc. |
|
Create a KisColor using a native color strategy. The data is copied.
Definition at line 62 of file kis_color.cc. |
|
Create a KisColor by converting src into another colorspace.
Definition at line 72 of file kis_color.cc. |
|
Copy constructor -- deep copies the colors.
Definition at line 81 of file kis_color.cc. |
Member Function Documentation
|
Convert this KisColor to the specified colorspace. If the specified colorspace is the same as the original colorspace, do nothing. Returns the converted KisColor. Definition at line 104 of file kis_color.cc. |
|
For easy memcpy'ing etc.
Definition at line 62 of file kis_color.h. |
|
Effective C++, item 11.
Definition at line 91 of file kis_color.cc. |
|
Replace the existing color data, and colorspace with the specified data.
Definition at line 123 of file kis_color.cc. |
|
To save the user the trouble of doing color->colorSpace()->toQColor(color->data(), &c, &a.
Definition at line 132 of file kis_color.cc. |
The documentation for this class was generated from the following files: