QRgba64 Class▲
-
Header: QRgba64
-
Since: Qt 5.6
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
-
qmake: QT += gui
-
Group: QRgba64 is part of Painting Classes
Detailed Description▲
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.
See Also▲
Member Function Documentation▲
[constexpr] quint8 QRgba64::alpha8() const▲
Returns the alpha channel as an 8-bit.
[constexpr] quint16 QRgba64::alpha() const▲
[constexpr] quint8 QRgba64::blue8() const▲
Returns the blue color component as an 8-bit.
[constexpr] quint16 QRgba64::blue() const▲
[static constexpr] QRgba64 QRgba64::fromArgb32(uint rgb)▲
[static constexpr] QRgba64 QRgba64::fromRgba64(quint64 c)▲
[static constexpr] QRgba64 QRgba64::fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a)▲
[static constexpr] QRgba64 QRgba64::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)▲
Constructs a QRgba64 value from the four 8-bit color channels red, green, blue and alpha.
See Also▲
See also fromArgb32()
[constexpr] quint8 QRgba64::green8() const▲
Returns the green color component as an 8-bit.
[constexpr] quint16 QRgba64::green() const▲
[constexpr] bool QRgba64::isOpaque() const▲
[constexpr] bool QRgba64::isTransparent() const▲
[constexpr] QRgba64 QRgba64::premultiplied() const▲
[constexpr] quint8 QRgba64::red8() const▲
Returns the red color component as an 8-bit.
[constexpr] quint16 QRgba64::red() const▲
void QRgba64::setAlpha(quint16 alpha)▲
void QRgba64::setBlue(quint16 blue)▲
void QRgba64::setGreen(quint16 green)▲
void QRgba64::setRed(quint16 red)▲
[constexpr] uint QRgba64::toArgb32() const▲
[constexpr] ushort QRgba64::toRgb16() const▲
[constexpr] QRgba64 QRgba64::unpremultiplied() const▲
[constexpr] quint64 QRgba64::operator quint64() const▲
Returns the color as a 64bit unsigned integer
QRgba64 &QRgba64::operator=(quint64 rgba)▲
Assigns the value rgba to this instance of QRgba64 and returns it.