44 explicit DColor(uchar* data,
bool sixteenBit =
false)
46 setColor(data, sixteenBit);
52 DColor(
int red,
int green,
int blue,
int alpha,
bool sixteenBit)
57 m_sixteenBit (sixteenBit)
64 explicit DColor(
const QColor& color,
bool sixteenBit=
false);
74 inline void setColor(uchar*
const data,
bool sixteenBit =
false);
82 inline void setPixel(uchar*
const data)
const;
131 m_sixteenBit = sixteenBit;
134 QColor getQColor()
const;
138 return ((m_red == v) && (m_green == v) && (m_blue == v));
143 return ((m_red == m_green) && (m_red == m_blue));
150 void convertToSixteenBit();
151 void convertToEightBit();
166 void getHSL(
int*
const h,
int*
const s,
int*
const l)
const;
175 void setHSL(
int h,
int s,
int l,
bool sixteenBit);
182 void getYCbCr(
double*
const y,
double*
const cb,
double*
const cr)
const;
191 void setYCbCr(
double y,
double cb,
double cr,
bool sixteenBit);
200 bool m_sixteenBit =
false;
210 inline void blendZero();
211 inline void blendAlpha8(
int alpha);
212 inline void blendInvAlpha8(
int alpha);
213 inline void blendAlpha16(
int alpha);
214 inline void blendInvAlpha16(
int alpha);
215 inline void premultiply16(
int alpha);
216 inline void premultiply8(
int alpha);
217 inline void demultiply16(
int alpha);
218 inline void demultiply8(
int alpha);
219 inline void blendAdd(
const DColor& src);
220 inline void blendClamp8();
221 inline void blendClamp16();
222 inline void multiply(
float factor);
bool isPureGray()
Definition dcolor.h:141
int green() const
Definition dcolor.h:89
void setGreen(int green)
Definition dcolor.h:114
void setAlpha(int alpha)
Definition dcolor.h:124
void setRed(int red)
Definition dcolor.h:109
DColor(int red, int green, int blue, int alpha, bool sixteenBit)
Definition dcolor.h:52
void setSixteenBit(bool sixteenBit)
Definition dcolor.h:129
bool sixteenBit() const
Definition dcolor.h:104
DColor(uchar *data, bool sixteenBit=false)
Definition dcolor.h:44
void setBlue(int blue)
Definition dcolor.h:119
int alpha() const
Definition dcolor.h:99
int blue() const
Definition dcolor.h:94
bool isPureGrayValue(int v)
Definition dcolor.h:136
int red() const
Definition dcolor.h:84
Definition datefolderview.cpp:34