def
cleanup
()
def
initialize
()
def
instance
([screen=-1])
PySide2.QtWidgets.QColormap.
模式
¶
This enum describes how
QColormap
maps device independent RGB values to device dependent pixel values.
|
常量 |
描述 |
|---|---|
|
QColormap.Direct |
Pixel values are derived directly from the RGB values, also known as “True Color.” |
|
QColormap.Indexed |
Pixel values represent indexes into a vector of available colors, i.e.
|
|
QColormap.Gray |
类似
|
PySide2.QtWidgets.QColormap.
cleanup
(
)
¶
PySide2.QtWidgets.QColormap.
colorAt
(
pixel
)
¶
pixel
–
uint
QColor
返回
QColor
为
pixel
.
另请参阅
PySide2.QtWidgets.QColormap.
colormap
(
)
¶
Returns a vector of colors which represents the devices colormap for
Indexed
and
Gray
modes. This function returns an empty vector for
Direct
模式。
另请参阅
PySide2.QtWidgets.QColormap.
initialize
(
)
¶
PySide2.QtWidgets.QColormap.
instance
(
[
screen=-1
]
)
¶
screen
–
int
Returns the colormap for the specified
screen
。若
screen
is -1, this function returns the colormap for the default screen.
PySide2.QtWidgets.QColormap.
pixel
(
color
)
¶
color
–
QColor
uint
Returns a device dependent pixel value for the
color
.
另请参阅
PySide2.QtWidgets.QColormap.
size
(
)
¶
int
Returns the size of the colormap for
Indexed
and
Gray
modes; Returns -1 for
Direct
模式。
另请参阅