QColormap露

Synopsis露
Functions露
Static functions露
def
cleanup()def
initialize()def
instance([screen=-1])
Detailed Description露
- class PySide2.QtWidgets.QColormap(colormap)露
- param colormap:
Constructs a copy of another
colormap.
- PySide2.QtWidgets.QColormap.Mode露
This enum describes how
QColormapmaps 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 鈥淭rue Color.鈥
QColormap.Indexed
Pixel values represent indexes into a vector of available colors, i.e.
QColormapuses the index of the color that most closely matches an RGB value.QColormap.Gray
Similar to
Indexed, pixel values represent a vector of available gray tones.QColormapuses the index of the gray tone that most closely matches the computed gray tone of an RGB value.
- static PySide2.QtWidgets.QColormap.cleanup()露
- PySide2.QtWidgets.QColormap.colorAt(pixel)露
- Parameters:
pixel 鈥
uint- Return type:
Returns a
QColorfor thepixel.See also
- PySide2.QtWidgets.QColormap.colormap()露
- Return type:
Returns a vector of colors which represents the devices colormap for
IndexedandGraymodes. This function returns an empty vector forDirectmode.See also
- PySide2.QtWidgets.QColormap.depth()露
- Return type:
int
Returns the depth of the device.
See also
- static PySide2.QtWidgets.QColormap.initialize()露
- static PySide2.QtWidgets.QColormap.instance([screen=-1])露
- Parameters:
screen 鈥 int
- Return type:
Returns the colormap for the specified
screen. Ifscreenis -1, this function returns the colormap for the default screen.
- PySide2.QtWidgets.QColormap.mode()露
- Return type:
Returns the mode of this colormap.
See also
Mode
- PySide2.QtWidgets.QColormap.pixel(color)露
- Parameters:
color 鈥
PySide2.QtGui.QColor- Return type:
uint
Returns a device dependent pixel value for the
color.See also
- PySide2.QtWidgets.QColormap.size()露
- Return type:
int
Returns the size of the colormap for
IndexedandGraymodes; Returns -1 forDirectmode.See also
漏 2022 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.