QRgba64 Class
The QRgba64 struct contains a 64-bit RGB color. More...
Header: | #include <QRgba64> |
qmake: | QT += gui |
Since: | Qt 5.6 |
Public Functions
QRgba64() | |
quint8 | alpha8() const |
quint16 | alpha() const |
quint8 | blue8() const |
quint16 | blue() const |
quint8 | green8() const |
quint16 | green() const |
bool | isOpaque() const |
bool | isTransparent() const |
QRgba64 | premultiplied() const |
quint8 | red8() const |
quint16 | red() const |
void | setAlpha(quint16 _alpha) |
void | setBlue(quint16 _blue) |
void | setGreen(quint16 _green) |
void | setRed(quint16 _red) |
uint | toArgb32() const |
ushort | toRgb16() const |
QRgba64 | unpremultiplied() const |
quint64 | operator quint64() const |
QRgba64 | operator=(quint64 _rgba) |
Static Public Members
QRgba64 | fromArgb32(uint rgb) |
QRgba64 | fromRgba64(quint64 c) |
QRgba64 | fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha) |
QRgba64 | fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha) |
Detailed Description
The QRgba64 struct contains a 64-bit RGB color.
QRgba64 is a 64-bit data-structure containing four 16-bit color channels: Red, green, blue and alpha.
QRgba64 can be used as a replacement for QRgb when higher precision is needed. In particular a premultiplied QRgba64 can operate on unpremultiplied QRgb without loss of precision except for alpha 0.
Member Function Documentation
QRgba64::QRgba64()
Default constructs an instance of QRgba64.
quint8 QRgba64::alpha8() const
quint16 QRgba64::alpha() const
See also setAlpha().
quint8 QRgba64::blue8() const
quint16 QRgba64::blue() const
See also setBlue().
[static]
QRgba64 QRgba64::fromArgb32(uint rgb)
[static]
QRgba64 QRgba64::fromRgba64(quint64 c)
[static]
QRgba64 QRgba64::fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha)
[static]
QRgba64 QRgba64::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)
quint8 QRgba64::green8() const
quint16 QRgba64::green() const
See also setGreen().
bool QRgba64::isOpaque() const
bool QRgba64::isTransparent() const
QRgba64 QRgba64::premultiplied() const
quint8 QRgba64::red8() const
quint16 QRgba64::red() const
See also setRed().
void QRgba64::setAlpha(quint16 _alpha)
See also alpha().
void QRgba64::setBlue(quint16 _blue)
See also blue().
void QRgba64::setGreen(quint16 _green)
See also green().
void QRgba64::setRed(quint16 _red)
See also red().