13#include <klocalizedstring.h>
30 addStandardCompositeOps<KoGrayU16Traits>(
this);
31 addStandardDitherOps<KoGrayU16Traits>(
this);
42 QDomElement labElt = doc.createElement(
"Gray");
45 colorElt.appendChild(labElt);
57 *luma = channelValues[0];
62 QVector <double> channelValues(2);
63 channelValues.fill(*luma);
70 *y = channelValues[0];
75 QVector <double> channelValues(2);
76 channelValues.fill(*y);
QVector< double > fromYUV(qreal *y, qreal *u, qreal *v) const override
virtual KoColorSpace * clone() const
void toHSY(const QVector< double > &channelValues, qreal *hue, qreal *sat, qreal *luma) const override
void colorFromXML(quint8 *pixel, const QDomElement &elt) const override
GrayAU16ColorSpace(const QString &name, KoColorProfile *p)
QVector< double > fromHSY(qreal *hue, qreal *sat, qreal *luma) const override
void colorToXML(const quint8 *pixel, QDomDocument &doc, QDomElement &colorElt) const override
void toYUV(const QVector< double > &channelValues, qreal *y, qreal *u, qreal *v) const override
@ ALPHA
The channel represents the opacity of a pixel.
@ COLOR
The channel represents a color.
@ UINT16
use this for an integer 16bits channel
static _Tdst scaleToA(_T a)
virtual void addChannel(KoChannelInfo *ci)
const KoColorProfile * profile() const override
double toDouble(const QString &str, bool *ok=nullptr)
QString toString(const QString &value)
_channels_type_ channels_type
the type of the value of the channels of this color space