QRgba64¶
The QRgba64
struct contains a 64-bit RGB color. More…
Synopsis¶
Functions¶
Static functions¶
def
fromArgb32
(rgb)def
fromRgba64
(c)def
fromRgba64
(red, green, blue, alpha)def
fromRgba
(red, green, blue, alpha)
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
QRgba64 –
PySide6.QtGui.QRgba64
- PySide6.QtGui.QRgba64.Shifts¶
- PySide6.QtGui.QRgba64.alpha()¶
- Return type
quint16
Returns the 16-bit alpha channel.
See also
- 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
- PySide6.QtGui.QRgba64.blue8()¶
- Return type
quint8
Returns the blue color component as an 8-bit.
- static PySide6.QtGui.QRgba64.fromArgb32(rgb)¶
- Parameters
rgb –
uint
- Return type
Constructs a QRgba64
value from the 32bit ARGB value rgb
.
See also
- static PySide6.QtGui.QRgba64.fromRgba(red, green, blue, alpha)¶
- Parameters
red –
quint8
green –
quint8
blue –
quint8
alpha –
quint8
- Return type
Constructs a QRgba64
value from the four 8-bit color channels red
, green
, blue
and alpha
.
See also
- static PySide6.QtGui.QRgba64.fromRgba64(red, green, blue, alpha)¶
- Parameters
red –
quint16
green –
quint16
blue –
quint16
alpha –
quint16
- Return type
Returns the QRgba64
quadruplet (r
, g
, b
, a
).
See also
- static PySide6.QtGui.QRgba64.fromRgba64(c)
- Parameters
c – int
- Return type
Returns c
as a QRgba64
struct.
See also
- PySide6.QtGui.QRgba64.green()¶
- Return type
quint16
Returns the 16-bit green color component.
See also
- 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.
See also
- PySide6.QtGui.QRgba64.isTransparent()¶
- Return type
bool
Returns whether the color is transparent.
See also
- PySide6.QtGui.QRgba64.premultiplied()¶
- Return type
Returns the color with the alpha premultiplied.
See also
- PySide6.QtGui.QRgba64.red()¶
- Return type
quint16
Returns the 16-bit red color component.
See also
- PySide6.QtGui.QRgba64.red8()¶
- Return type
quint8
Returns the red color component as an 8-bit.
- PySide6.QtGui.QRgba64.setAlpha(_alpha)¶
- Parameters
_alpha –
quint16
Sets the alpha of this color to alpha
.
See also
- PySide6.QtGui.QRgba64.setBlue(_blue)¶
- Parameters
_blue –
quint16
Sets the blue color component of this color to blue
.
See also
- PySide6.QtGui.QRgba64.setGreen(_green)¶
- Parameters
_green –
quint16
Sets the green color component of this color to green
.
See also
- PySide6.QtGui.QRgba64.setRed(_red)¶
- Parameters
_red –
quint16
Sets the red color component of this color to red
.
See also
- PySide6.QtGui.QRgba64.toArgb32()¶
- Return type
uint
Returns the color as a 32-bit ARGB value.
See also
- PySide6.QtGui.QRgba64.toRgb16()¶
- Return type
ushort
Returns the color as a 16-bit RGB value.
See also
- PySide6.QtGui.QRgba64.unpremultiplied()¶
- Return type
Returns the color with the alpha unpremultiplied.
See also