ColorSpace
Qt Base Class: QColorSpace
Signature: QColorSpace(self) -> None
QColorSpace(self, colorSpace: Union[PySide6.QtGui.QColorSpace, PySide6.QtGui.QColorSpace.NamedColorSpace]) -> None
QColorSpace(self, namedColorSpace: PySide6.QtGui.QColorSpace.NamedColorSpace) -> None
QColorSpace(self, primaries: PySide6.QtGui.QColorSpace.Primaries, gamma: float) -> None
QColorSpace(self, primaries: PySide6.QtGui.QColorSpace.Primaries, transferFunction: PySide6.QtGui.QColorSpace.TransferFunction, gamma: float = 0.0) -> None
QColorSpace(self, primaries: PySide6.QtGui.QColorSpace.Primaries, transferFunctionTable: Sequence[int]) -> None
QColorSpace(self, whitePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], redPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], greenPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], bluePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], redTransferFunctionTable: Sequence[int], greenTransferFunctionTable: Sequence[int], blueTransferFunctionTable: Sequence[int]) -> None
QColorSpace(self, whitePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], redPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], greenPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], bluePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], transferFunction: PySide6.QtGui.QColorSpace.TransferFunction, gamma: float = 0.0) -> None
QColorSpace(self, whitePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], redPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], greenPoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], bluePoint: Union[PySide6.QtCore.QPointF, PySide6.QtCore.QPoint, PySide6.QtGui.QPainterPath.Element], transferFunctionTable: Sequence[int]) -> None
Base classes
Name | Children | Inherits |
---|---|---|
SerializeMixin prettyqt.utils.serializemixin |
||
QColorSpace PySide6.QtGui QColorSpace(self) -> None |
⋔ Inheritance diagram
graph TD
1473245660720["gui.ColorSpace"]
1473299806240["utils.SerializeMixin"]
140713234304496["builtins.object"]
1473300172160["QtGui.QColorSpace"]
1473291690208["Shiboken.Object"]
1473299806240 --> 1473245660720
140713234304496 --> 1473299806240
1473300172160 --> 1473245660720
1473291690208 --> 1473300172160
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: SerializeMixin
, QColorSpace
Color space abstraction.
Source code in prettyqt\gui\colorspace.py
get_primaries() -> PrimariesStr
get_transfer_function() -> TransformFunctionStr
set_primaries(primaries: PrimariesStr | QtGui.QColorSpace.Primaries)
Set primaries.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
primaries |
PrimariesStr | Primaries
|
primaries to use |
required |
set_transfer_function(fn: TransformFunctionStr | QtGui.QColorSpace.TransferFunction, gamma: float = 0.0)
Set transfer function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fn |
TransformFunctionStr | TransferFunction
|
transfer function to use |
required |
gamma |
float
|
gamma value |
0.0
|