En esta página

QRgba64 Class

La estructura QRgba64 contiene un color RGB de 64 bits. Más...

Cabecera: #include <QRgba64>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui

Funciones Públicas

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
operator quint64() const
QRgba64 &operator=(quint64 rgba)

Miembros Públicos Estáticos

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)

Descripción Detallada

QRgba64 es una estructura de datos de 64 bits que contiene cuatro canales de color de 16 bits: Rojo, verde, azul y alfa.

QRgba64 puede utilizarse como sustituto de QRgb cuando se necesita una mayor precisión. En particular, un QRgba64 premultiplicado puede operar sobre QRgb sin premultiplicar sin pérdida de precisión, excepto para alfa 0.

Véase también QRgb y QColor.

Documentación de las funciones miembro

[constexpr] quint8 QRgba64::alpha8() const

Devuelve el canal alfa como un 8-bit.

[constexpr] quint16 QRgba64::alpha() const

Devuelve el canal alfa de 16 bits.

Véase también setAlpha().

[constexpr] quint8 QRgba64::blue8() const

Devuelve el componente de color azul como un 8-bit.

[constexpr] quint16 QRgba64::blue() const

Devuelve el componente de color azul de 16 bits.

Véase también setBlue().

[static constexpr] QRgba64 QRgba64::fromArgb32(uint rgb)

Construye un valor QRgba64 a partir del valor ARGB de 32 bits rgb.

Véase también fromRgba().

[static constexpr] QRgba64 QRgba64::fromRgba64(quint64 c)

Devuelve c como una estructura QRgba64.

Véase también fromArgb32().

[static constexpr] QRgba64 QRgba64::fromRgba64(quint16 r, quint16 g, quint16 b, quint16 a)

Devuelve el cuadruplo QRgba64 (r, g, b, a).

Véase también fromRgba().

[static constexpr] QRgba64 QRgba64::fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha)

Construye un valor QRgba64 a partir de los cuatro canales de color de 8 bits red, green, blue y alpha.

Véase también fromArgb32().

[constexpr] quint8 QRgba64::green8() const

Devuelve el componente de color verde como un 8-bit.

[constexpr] quint16 QRgba64::green() const

Devuelve el componente de color verde de 16 bits.

Véase también setGreen().

[constexpr] bool QRgba64::isOpaque() const

Devuelve si el color es totalmente opaco.

Véase también isTransparent() y alpha().

[constexpr] bool QRgba64::isTransparent() const

Devuelve si el color es transparente.

Véase también isOpaque() y alpha().

[constexpr] QRgba64 QRgba64::premultiplied() const

Devuelve el color con el alfa premultiplicado.

Véase también unpremultiplied().

[constexpr] quint8 QRgba64::red8() const

Devuelve el componente de color rojo como un 8-bit.

[constexpr] quint16 QRgba64::red() const

Devuelve el componente de color rojo de 16 bits.

Véase también setRed().

void QRgba64::setAlpha(quint16 alpha)

Establece el alfa de este color a alpha.

Véase también alpha().

void QRgba64::setBlue(quint16 blue)

Establece el componente de color azul de este color en blue.

Véase también blue().

void QRgba64::setGreen(quint16 green)

Establece el componente de color verde de este color en green.

Véase también green().

void QRgba64::setRed(quint16 red)

Establece el componente de color rojo de este color en red.

Véase también red().

[constexpr] uint QRgba64::toArgb32() const

Devuelve el color como un valor ARGB de 32 bits.

Véase también fromArgb32().

[constexpr] ushort QRgba64::toRgb16() const

Devuelve el color como un valor RGB de 16 bits.

Véase también toArgb32().

[constexpr] QRgba64 QRgba64::unpremultiplied() const

Devuelve el color con el alfa sin multiplicar.

Véase también premultiplied().

[constexpr] QRgba64::operator quint64() const

Devuelve el color como un entero de 64 bits sin signo

[noexcept] QRgba64 &QRgba64::operator=(quint64 rgba)

Asigna el valor rgba a esta instancia de QRgba64 y lo devuelve.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.