QRgba64

The QRgba64 struct contains a 64-bit RGB color. More

Inheritance diagram of PySide6.QtGui.QRgba64

Synopsis

Functions

Static functions

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

QRgb QColor

class PySide6.QtGui.QRgba64

PySide6.QtGui.QRgba64(QRgba64)

Parameters

QRgba64PySide6.QtGui.QRgba64

PySide6.QtGui.QRgba64.Shifts
PySide6.QtGui.QRgba64.alpha()
Return type

quint16

Returns the 16-bit alpha channel.

See also

setAlpha()

PySide6.QtGui.QRgba64.alpha8()
Return type

quint8

Returns the alpha channel as an 8-bit.

PySide6.QtGui.QRgba64.blue()
Return type

quint16

Returns the 16-bit blue color component.

See also

setBlue()

PySide6.QtGui.QRgba64.blue8()
Return type

quint8

Returns the blue color component as an 8-bit.

static PySide6.QtGui.QRgba64.fromArgb32(rgb)
Parameters

rgbuint

Return type

PySide6.QtGui.QRgba64

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

See also

fromRgba()

static PySide6.QtGui.QRgba64.fromRgba(red, green, blue, alpha)
Parameters
  • redquint8

  • greenquint8

  • bluequint8

  • alphaquint8

Return type

PySide6.QtGui.QRgba64

Constructs a QRgba64 value from the four 8-bit color channels red, green, blue and alpha.

See also

fromArgb32()

static PySide6.QtGui.QRgba64.fromRgba64(red, green, blue, alpha)
Parameters
  • redquint16

  • greenquint16

  • bluequint16

  • alphaquint16

Return type

PySide6.QtGui.QRgba64

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

See also

fromRgba()

static PySide6.QtGui.QRgba64.fromRgba64(c)
Parameters

c – int

Return type

PySide6.QtGui.QRgba64

Returns c as a QRgba64 struct.

See also

fromArgb32()

PySide6.QtGui.QRgba64.green()
Return type

quint16

Returns the 16-bit green color component.

See also

setGreen()

PySide6.QtGui.QRgba64.green8()
Return type

quint8

Returns the green color component as an 8-bit.

PySide6.QtGui.QRgba64.isOpaque()
Return type

bool

Returns whether the color is fully opaque.

PySide6.QtGui.QRgba64.isTransparent()
Return type

bool

Returns whether the color is transparent.

See also

isOpaque() alpha()

PySide6.QtGui.QRgba64.premultiplied()
Return type

PySide6.QtGui.QRgba64

Returns the color with the alpha premultiplied.

PySide6.QtGui.QRgba64.red()
Return type

quint16

Returns the 16-bit red color component.

See also

setRed()

PySide6.QtGui.QRgba64.red8()
Return type

quint8

Returns the red color component as an 8-bit.

PySide6.QtGui.QRgba64.setAlpha(_alpha)
Parameters

_alphaquint16

Sets the alpha of this color to alpha.

See also

alpha()

PySide6.QtGui.QRgba64.setBlue(_blue)
Parameters

_bluequint16

Sets the blue color component of this color to blue.

See also

blue()

PySide6.QtGui.QRgba64.setGreen(_green)
Parameters

_greenquint16

Sets the green color component of this color to green.

See also

green()

PySide6.QtGui.QRgba64.setRed(_red)
Parameters

_redquint16

Sets the red color component of this color to red.

See also

red()

PySide6.QtGui.QRgba64.toArgb32()
Return type

uint

Returns the color as a 32-bit ARGB value.

See also

fromArgb32()

PySide6.QtGui.QRgba64.toRgb16()
Return type

ushort

Returns the color as a 16-bit RGB value.

See also

toArgb32()

PySide6.QtGui.QRgba64.unpremultiplied()
Return type

PySide6.QtGui.QRgba64

Returns the color with the alpha unpremultiplied.

See also

premultiplied()