PySide6.QtGui.QRgba64¶
- class QRgba64¶
- The - QRgba64struct contains a 64-bit RGB color. More…- Synopsis¶- Methods¶- def - __init__()
- def - alpha()
- def - alpha8()
- def - blue()
- def - blue8()
- def - green()
- def - green8()
- def - isOpaque()
- def - isTransparent()
- def - premultiplied()
- def - red()
- def - red8()
- def - setAlpha()
- def - setBlue()
- def - setGreen()
- def - setRed()
- def - toArgb32()
- def - toRgb16()
 - Static functions¶- def - fromArgb32()
- def - fromRgba()
- def - fromRgba64()
 - 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¶- QRgba64is a 64-bit data-structure containing four 16-bit color channels: Red, green, blue and alpha.- QRgba64can be used as a replacement for- QRgbwhen higher precision is needed. In particular a premultiplied- QRgba64can operate on unpremultiplied- QRgbwithout loss of precision except for alpha 0.- See also - QRgb- QColor- class Shifts¶
 - __init__()¶
 - alpha()¶
- Return type:
- int 
 
 - Returns the 16-bit alpha channel. - See also - alpha8()¶
- Return type:
- int 
 
 - Returns the alpha channel as an 8-bit. - blue()¶
- Return type:
- int 
 
 - Returns the 16-bit blue color component. - See also - blue8()¶
- Return type:
- int 
 
 - Returns the blue color component as an 8-bit. - Constructs a - QRgba64value from the 32bit ARGB value- rgb.- See also - static fromRgba(red, green, blue, alpha)¶
- Parameters:
- red – int 
- green – int 
- blue – int 
- alpha – int 
 
- Return type:
 
 - Constructs a - QRgba64value from the four 8-bit color channels- red,- green,- blueand- alpha.- See also - Returns - cas a- QRgba64struct.- See also - static fromRgba64(red, green, blue, alpha)
- Parameters:
- red – int 
- green – int 
- blue – int 
- alpha – int 
 
- Return type:
 
 - Returns the - QRgba64quadruplet (- r,- g,- b,- a).- See also - green()¶
- Return type:
- int 
 
 - Returns the 16-bit green color component. - See also - green8()¶
- Return type:
- int 
 
 - Returns the green color component as an 8-bit. - isOpaque()¶
- Return type:
- bool 
 
 - Returns whether the color is fully opaque. - See also - isTransparent()¶
- Return type:
- bool 
 
 - Returns whether the color is transparent. - See also - Returns the color with the alpha premultiplied. - See also - red()¶
- Return type:
- int 
 
 - Returns the 16-bit red color component. - See also - red8()¶
- Return type:
- int 
 
 - Returns the red color component as an 8-bit. - setAlpha(_alpha)¶
- Parameters:
- _alpha – int 
 
 - Sets the alpha of this color to - alpha.- See also - setBlue(_blue)¶
- Parameters:
- _blue – int 
 
 - Sets the blue color component of this color to - blue.- See also - setGreen(_green)¶
- Parameters:
- _green – int 
 
 - Sets the green color component of this color to - green.- See also - setRed(_red)¶
- Parameters:
- _red – int 
 
 - Sets the red color component of this color to - red.- See also - toArgb32()¶
- Return type:
- int 
 
 - Returns the color as a 32-bit ARGB value. - See also - toRgb16()¶
- Return type:
- int 
 
 - Returns the color as a 16-bit RGB value. - See also - Returns the color with the alpha unpremultiplied. - See also