QRgba64 Class | Qt GUI 5.15.18 (original) (raw)

This class was introduced in Qt 5.6.

Member Function Documentation

quint8 QRgba64::alpha8() const

Returns the alpha channel as an 8-bit.

quint16 QRgba64::alpha() const

Returns the 16-bit alpha channel.

See also setAlpha().

quint8 QRgba64::blue8() const

Returns the blue color component as an 8-bit.

quint16 QRgba64::blue() const

Returns the 16-bit blue color component.

See also setBlue().

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

Constructs a QRgba64 value from the 32bit ARGB value rgb.

See also fromRgba().

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

Returns c as a QRgba64 struct.

See also fromArgb32().

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

Returns the QRgba64 quadruplet (r, g, b, a).

See also fromRgba().

[static] 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().

quint8 QRgba64::green8() const

Returns the green color component as an 8-bit.

quint16 QRgba64::green() const

Returns the 16-bit green color component.

See also setGreen().

bool QRgba64::isOpaque() const

Returns whether the color is fully opaque.

See also isTransparent() and alpha().

bool QRgba64::isTransparent() const

Returns whether the color is transparent.

See also isOpaque() and alpha().

QRgba64 QRgba64::premultiplied() const

Returns the color with the alpha premultiplied.

See also unpremultiplied().

quint8 QRgba64::red8() const

Returns the red color component as an 8-bit.

quint16 QRgba64::red() const

Returns the 16-bit red color component.

See also setRed().

void QRgba64::setAlpha(quint16 alpha)

Sets the alpha of this color to alpha.

See also alpha().

void QRgba64::setBlue(quint16 blue)

Sets the blue color component of this color to blue.

See also blue().

void QRgba64::setGreen(quint16 green)

Sets the green color component of this color to green.

See also green().

void QRgba64::setRed(quint16 red)

Sets the red color component of this color to red.

See also red().

uint QRgba64::toArgb32() const

Returns the color as a 32-bit ARGB value.

See also fromArgb32().

ushort QRgba64::toRgb16() const

Returns the color as a 16-bit RGB value.

See also toArgb32().

QRgba64 QRgba64::unpremultiplied() const

Returns the color with the alpha unpremultiplied.

See also premultiplied().

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.