9#include <QGlobalStatic>
28 Q_UNUSED(proofPaintColors);
29 return srcColorSpace->
convertToQImage(data, size.width(), size.height(), 0,
36 Q_UNUSED(proofToPaintColors);
49 h = qBound(0, h, 359);
50 s = qBound(0, s, 255);
51 v = qBound(0,
v, 255);
52 a = qBound(0, a, 255);
53 QColor qcolor(QColor::fromHsv(h, s,
v, a));
60 qcolor.getHsv(h, s,
v, a);
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
double getUIMin(void) const
double getUIMax(void) const
~KoColorDisplayRendererInterface() override
virtual QImage convertToQImage(const quint8 *data, qint32 width, qint32 height, const KoColorProfile *dstProfile, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const
void fromQColor(const QColor &c)
Convenient function for converting from a QColor.
void toQColor(QColor *c) const
a convenience method for the above.
KoColor approximateFromRenderedQColor(const QColor &c) const override
QImage toQImage(const KoColorSpace *srcColorSpace, const quint8 *data, QSize size, bool proofPaintColors=false) const override
Convert a consecutive block of pixel data to an ARGB32 QImage.
qreal maxVisibleFloatValue(const KoChannelInfo *chaninfo) const override
void getHsv(const KoColor &srcColor, int *h, int *s, int *v, int *a=0) const override
QColor toQColor(const KoColor &c, bool proofToPaintColors=false) const override
qreal minVisibleFloatValue(const KoChannelInfo *chaninfo) const override
KoColor fromHsv(int h, int s, int v, int a=255) const override
static KoColorDisplayRendererInterface * instance()
const KoColorSpace * getPaintingColorSpace() const override
getColorSpace
static KoColorSpaceRegistry * instance()
const KoColorSpace * rgb8(const QString &profileName=QString())