The QRgbaFloat struct contains a four part RGBA floating-point color. More...
Header: | #include <QRgbaFloat> |
CMake: | find_package(Qt6 COMPONENTS Gui REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Since: | Qt 6.2 |
FastType |
quint8 | alpha8() const |
quint16 | alpha16() const |
QRgbaFloat::FastType | alpha() const |
QRgbaFloat::FastType | alphaNormalized() const |
quint8 | blue8() const |
quint16 | blue16() const |
QRgbaFloat::FastType | blue() const |
QRgbaFloat::FastType | blueNormalized() const |
quint8 | green8() const |
quint16 | green16() const |
QRgbaFloat::FastType | green() const |
QRgbaFloat::FastType | greenNormalized() const |
bool | isOpaque() const |
bool | isTransparent() const |
QRgbaFloat<F> | premultiplied() const |
quint8 | red8() const |
quint16 | red16() const |
QRgbaFloat::FastType | red() const |
QRgbaFloat::FastType | redNormalized() const |
void | setAlpha(QRgbaFloat::FastType alpha) |
void | setBlue(QRgbaFloat::FastType blue) |
void | setGreen(QRgbaFloat::FastType green) |
void | setRed(QRgbaFloat::FastType red) |
uint | toArgb32() const |
QRgbaFloat<F> | unpremultiplied() const |
QRgbaFloat<F> | fromArgb32(uint rgb) |
QRgbaFloat<F> | fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha) |
QRgbaFloat<F> | fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha) |
QRgbaFloat16 | |
QRgbaFloat32 |
See also QRgb, QRgba64, and QColor.
[alias]
QRgbaFloat::FastType
Alias for float.
Returns the alpha channel as an 8-bit.
Returns the alpha channel as a 16-bit integer.
Returns the alpha channel.
See also setAlpha().
Returns the alpha channel normalized to values between 0.0f
and 1.0f
.
See also alpha().
Returns the blue color component as an 8-bit.
Returns the blue color component as a 16-bit integer.
Returns the blue color component.
See also setBlue().
Returns the blue color component normalized to values between 0.0f
and 1.0f
.
See also setBlue().
[static]
QRgbaFloat<F> QRgbaFloat::fromArgb32(uint rgb)
Constructs a QRgbaFloat value from the 32bit ARGB value rgb.
See also fromRgba() and toArgb32().
[static]
QRgbaFloat<F> QRgbaFloat::fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha)
Constructs a QRgbaFloat value from the four 16-bit integer color channels red, green, blue and alpha.
See also fromRgba().
[static]
QRgbaFloat<F> QRgbaFloat::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)
Constructs a QRgbaFloat value from the four 8-bit color channels red, green, blue and alpha.
See also fromArgb32().
Returns the green color component as an 8-bit.
Returns the green color component as a 16-bit integer.
Returns the green color component.
See also setGreen().
Returns the green color component normalized to values between 0.0f
and 1.0f
.
See also setGreen().
Returns whether the color is fully opaque.
See also isTransparent() and alpha().
Returns whether the color is fully transparent.
See also isOpaque() and alpha().
Returns the color with the alpha premultiplied.
See also unpremultiplied().
Returns the red color component as an 8-bit.
Returns the red color component as a 16-bit integer.
Returns the red color component.
See also setRed().
Returns the red color component normalized to values between 0.0f
and 1.0f
.
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().
Returns the color as a 32-bit ARGB value.
See also fromArgb32().
Returns the color with the alpha unpremultiplied.
See also premultiplied().
A 64-bit data-structure containing four 16-bit floating point color channels: Red, green, blue and alpha.
A 128-bit data-structure containing four 32-bit floating point color channels: Red, green, blue and alpha.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qrgbafloat.html