QRgba64#
The QRgba64
struct contains a 64-bit RGB color. More…
Synopsis#
Functions#
Static functions#
def
fromArgb32
(rgb)def
fromRgba
(red, green, blue, alpha)def
fromRgba64
(red, green, blue, alpha)def
fromRgba64
(c)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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.Shifts#
- PySide6.QtGui.QRgba64.alpha()#
- Return type:
int
Returns the 16-bit alpha channel.
See also
- PySide6.QtGui.QRgba64.alpha8()#
- Return type:
int
Returns the alpha channel as an 8-bit.
- PySide6.QtGui.QRgba64.blue()#
- Return type:
int
Returns the 16-bit blue color component.
See also
- PySide6.QtGui.QRgba64.blue8()#
- Return type:
int
Returns the blue color component as an 8-bit.
- static PySide6.QtGui.QRgba64.fromArgb32(rgb)#
- Parameters:
rgb – int
- 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 – int
green – int
blue – int
alpha – int
- 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 – int
green – int
blue – int
alpha – int
- 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:
int
Returns the 16-bit green color component.
See also
- PySide6.QtGui.QRgba64.green8()#
- Return type:
int
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:
int
Returns the 16-bit red color component.
See also
- PySide6.QtGui.QRgba64.red8()#
- Return type:
int
Returns the red color component as an 8-bit.
- PySide6.QtGui.QRgba64.setAlpha(_alpha)#
- Parameters:
_alpha – int
Sets the alpha of this color to alpha
.
See also
- PySide6.QtGui.QRgba64.setBlue(_blue)#
- Parameters:
_blue – int
Sets the blue color component of this color to blue
.
See also
- PySide6.QtGui.QRgba64.setGreen(_green)#
- Parameters:
_green – int
Sets the green color component of this color to green
.
See also
- PySide6.QtGui.QRgba64.setRed(_red)#
- Parameters:
_red – int
Sets the red color component of this color to red
.
See also
- PySide6.QtGui.QRgba64.toArgb32()#
- Return type:
int
Returns the color as a 32-bit ARGB value.
See also
- PySide6.QtGui.QRgba64.toRgb16()#
- Return type:
int
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