Krita
ManagedColor.cpp
33ManagedColor::ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent)
37 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
63 if (canvas && canvas->displayColorConverter() && canvas->displayColorConverter()->displayRendererInterface()) {
79 if (canvas && canvas->displayColorConverter() && canvas->displayColorConverter()->displayRendererInterface()) {
115bool ManagedColor::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
117 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
The ManagedColor class is a class to handle colors that are color managed.
Definition ManagedColor.h:46
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
QDomElement createElement(const QString &tagName)
QDomElement documentElement() const const
ParseResult setContent(QAnyStringView text, ParseOptions options)
QString toString(int indent) const const
QString attribute(const QString &name, const QString &defValue) const const
void setAttribute(const QString &name, const QString &value)
QDomNode appendChild(const QDomNode &newChild)
QDomElement firstChildElement(const QString &tagName, const QString &namespaceURI) const const
bool isNull() const const
qsizetype size() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.