The QRgba64 struct contains a 64-bit RGB color. More...
| Header: | #include <QRgba64> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 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) |
| QRgba64 | fromArgb32(uint rgb) |
| QRgba64 | fromRgba64(quint64 c) |
| QRgba64 | fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a) |
| QRgba64 | fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha) |
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.
[constexpr] quint8 QRgba64::alpha8()
constReturns the alpha channel as an 8-bit.
[constexpr] quint16 QRgba64::alpha()
constReturns the 16-bit alpha channel.
See also setAlpha().
[constexpr] quint8 QRgba64::blue8()
constReturns the blue color component as an 8-bit.
[constexpr] quint16 QRgba64::blue()
constReturns the 16-bit blue color component.
See also setBlue().
[static constexpr] QRgba64 QRgba64::fromArgb32(uint rgb)Constructs a QRgba64 value from the 32bit ARGB value rgb.
See also fromRgba().
[static constexpr] QRgba64 QRgba64::fromRgba64(quint64 c)Returns c as a QRgba64 struct.
See also fromArgb32().
[static constexpr] QRgba64 QRgba64::fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a)Returns the QRgba64 quadruplet (r, g, b, a).
See also fromRgba().
[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 fromArgb32().
[constexpr] quint8 QRgba64::green8()
constReturns the green color component as an 8-bit.
[constexpr] quint16 QRgba64::green()
constReturns the 16-bit green color component.
See also setGreen().
[constexpr] bool QRgba64::isOpaque() constReturns whether the color is fully opaque.
See also isTransparent() and alpha().
[constexpr] bool QRgba64::isTransparent() constReturns whether the color is transparent.
See also isOpaque() and alpha().
[constexpr] QRgba64 QRgba64::premultiplied() constReturns the color with the alpha premultiplied.
See also unpremultiplied().
[constexpr] quint8 QRgba64::red8()
constReturns the red color component as an 8-bit.
[constexpr] quint16 QRgba64::red()
constReturns the 16-bit red color component.
See also setRed().
Sets the alpha of this color to alpha.
See also alpha().
Sets the blue color component of this color to blue.
See also blue().
Sets the green color component of this color to green.
See also green().
Sets the red color component of this color to red.
See also red().
[constexpr] uint QRgba64::toArgb32()
constReturns the color as a 32-bit ARGB value.
See also fromArgb32().
[constexpr] ushort QRgba64::toRgb16() constReturns the color as a 16-bit RGB value.
See also toArgb32().
[constexpr] QRgba64 QRgba64::unpremultiplied() constReturns the color with the alpha unpremultiplied.
See also premultiplied().
[constexpr] quint64 QRgba64::operator quint64() constReturns the color as a 64bit unsigned integer
[noexcept] QRgba64 &QRgba64::operator=(quint64 rgba)Assigns the value rgba to this instance of QRgba64 and returns it.