Krita
ManagedColor.cpp
33 ManagedColor::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()) {
64 KoColorDisplayRendererInterface *converter = canvas->displayColorConverter()->displayRendererInterface();
79 if (canvas && canvas->displayColorConverter() && canvas->displayColorConverter()->displayRendererInterface()) {
80 KoColorDisplayRendererInterface *converter = canvas->displayColorConverter()->displayRendererInterface();
115 bool ManagedColor::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
117 const KoColorSpace *colorSpace = KoColorSpaceRegistry::instance()->colorSpace(colorModel, colorDepth, colorProfile);
void fromXML(const QString &xml)
Unserialize a color following Create's swatch color specification available at https://web....
Definition: ManagedColor.cpp:157
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition: ManagedColor.cpp:92
QString toString(int indent) const const
void setComponents(const QVector< float > &values)
setComponents Set the channel/components with normalized values.
Definition: ManagedColor.cpp:142
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 colorModel() const
colorModel retrieve the current color model of this document:
Definition: ManagedColor.cpp:97
bool isNull() const const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
ManagedColor(QObject *parent=0)
ManagedColor Create a ManagedColor that is black and transparent.
Definition: ManagedColor.cpp:26
QDomElement createElement(const QString &tagName)
void setAttribute(const QString &name, const QString &value)
int size() const const
T * data() const const
QString toQString()
toQString create a user-visible string of the channel names and the channel values
Definition: ManagedColor.cpp:171
bool setColorProfile(const QString &colorProfile)
setColorProfile set the color profile of the image to the given profile.
Definition: ManagedColor.cpp:107
The ManagedColor class is a class to handle colors that are color managed.
Definition: ManagedColor.h:45
QDomElement documentElement() const const
QDomElement firstChildElement(const QString &tagName) const const
QString toXML() const
Serialize this color following Create's swatch color specification available at https://web....
Definition: ManagedColor.cpp:147
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const const
static ManagedColor * fromQColor(const QColor &qcolor, Canvas *canvas=0)
fromQColor is the (approximate) reverse of colorForCanvas()
Definition: ManagedColor.cpp:76
QVector< V > values(const QMultiHash< K, V > &c)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:58:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:58:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.