QColormap¶
The QColormap
class maps device independent QColors to device dependent pixel values. More…

Detailed Description¶
-
class
PySide6.QtWidgets.
QColormap
(colormap)¶ - Parameters
colormap –
PySide6.QtWidgets.QColormap
-
PySide6.QtWidgets.QColormap.
Mode
¶
This enum describes how QColormap
maps device independent RGB values to device dependent pixel values.
Constant
Description
QColormap.Direct
Pixel values are derived directly from the RGB values, also known as “True Color.”
QColormap.Indexed
Pixel values represent indexes into a list of available colors, i.e.
QColormap
uses the index of the color that most closely matches an RGB value.QColormap.Gray
Similar to
Indexed
, pixel values represent a list of available gray tones.QColormap
uses the index of the gray tone that most closely matches the computed gray tone of an RGB value.
-
static
PySide6.QtWidgets.QColormap.
cleanup
()¶
-
PySide6.QtWidgets.QColormap.
colorAt
(pixel)¶ - Parameters
pixel –
uint
- Return type
-
PySide6.QtWidgets.QColormap.
colormap
()¶ - Return type
-
PySide6.QtWidgets.QColormap.
depth
()¶ - Return type
int
-
static
PySide6.QtWidgets.QColormap.
initialize
()¶
-
static
PySide6.QtWidgets.QColormap.
instance
([screen=-1])¶ - Parameters
screen – int
- Return type
-
PySide6.QtWidgets.QColormap.
pixel
(color)¶ - Parameters
color –
PySide6.QtGui.QColor
- Return type
uint
-
PySide6.QtWidgets.QColormap.
size
()¶ - Return type
int
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.