Krita
ManagedColor.h
22 * the specific properties of its colorspace, such as the whitepoint, chromaticities, trc, etc, as represented
26 * LCMS is the one handling the ICC profile stuff, and the major one handling that ManagedColor deals with.
27 * OCIO support is only in the display of the colors. ManagedColor has some support for it in colorForCanvas()
29 * All colors in Krita are color managed. QColors are understood as RGB-type colors in the sRGB space.
58 ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent = 0);
66 * @param canvas the canvas whose color management you'd like to use. In Krita, different views have
68 * @return the QColor as it would be displaying on the canvas. This result can be used to draw widgets with
114 * @brief setColorProfile set the color profile of the image to the given profile. The profile has to
115 * be registered with krita and be compatible with the current color model and depth; the image data
118 * @return false if the colorProfile name does not correspond to to a registered profile or if assigning
124 * @brief setColorSpace convert the nodes and the image to the given colorspace. The conversion is
125 * done with Perceptual as intent, High Quality and No LCMS Optimizations as flags and no blackpoint
148 bool setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile);
152 * @return a QVector containing the channel/components of this color normalized. This includes the alphachannel.
164 * Set the channel/components with normalized values. For integer colorspace, this obviously means the limit
165 * is between 0.0-1.0, but for floating point colorspaces, 2.4 or 103.5 are still meaningful (if bright) values.
166 * @param values the QVector containing the new channel/component values. These should be normalized.
172 * at https://web.archive.org/web/20110826002520/http://create.freedesktop.org/wiki/Swatches_-_color_file_format/Draft
QString colorModel() const
colorModel retrieve the current color model of this document:
Definition ManagedColor.cpp:97
ManagedColor(QObject *parent=0)
ManagedColor Create a ManagedColor that is black and transparent.
Definition ManagedColor.cpp:26
bool setColorProfile(const QString &colorProfile)
setColorProfile set the color profile of the image to the given profile.
Definition ManagedColor.cpp:107
static ManagedColor * fromQColor(const QColor &qcolor, Canvas *canvas=0)
fromQColor is the (approximate) reverse of colorForCanvas()
Definition ManagedColor.cpp:76
QString toXML() const
Serialize this color following Create's swatch color specification available at https://web....
Definition ManagedColor.cpp:147
bool setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
setColorSpace convert the nodes and the image to the given colorspace.
Definition ManagedColor.cpp:115
QString toQString()
toQString create a user-visible string of the channel names and the channel values
Definition ManagedColor.cpp:171
void fromXML(const QString &xml)
Unserialize a color following Create's swatch color specification available at https://web....
Definition ManagedColor.cpp:157
void setComponents(const QVector< float > &values)
setComponents Set the channel/components with normalized values.
Definition ManagedColor.cpp:142
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition ManagedColor.cpp:92
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.