The QColormap class maps device independent QColors to device dependent pixel values.
More...
The QColormap class maps device independent QColors to device dependent pixel values.
This enum describes how QColormap maps device independent RGB values to device dependent pixel values.
- Enumerator:
Direct |
Pixel values are derived directly from the RGB values, also known as "True Color."
|
Gray |
Similar to Indexed, pixel values represent a vector of available gray tones. QColormap uses the index of the gray tone that most closely matches the computed gray tone of an RGB value.
|
Indexed |
Pixel values represent indexes into a vector of available colors, i.e. QColormap uses the index of the color that most closely matches an RGB value.
|
QtGui.QColormap.QColormap |
( |
System.Type |
dummy | ) |
|
|
protected |
QtGui.QColormap.QColormap |
( |
QColormap |
colormap | ) |
|
Constructs a copy of another colormap.
static void QtGui.QColormap.Cleanup |
( |
| ) |
|
|
static |
new QColor QtGui.QColormap.ColorAt |
( |
uint |
pixel | ) |
|
Returns a QColor for the pixel.
See also pixel().
new System.Collections.Generic.List<QColor> QtGui.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 mode.
See also size().
virtual void QtGui.QColormap.CreateProxy |
( |
| ) |
|
|
virtual |
new int QtGui.QColormap.Depth |
( |
| ) |
|
Returns the depth of the device.
See also size().
new void QtGui.QColormap.Dispose |
( |
| ) |
|
static System.IntPtr QtGui.QColormap.hPal |
( |
| ) |
|
|
static |
This function is only available on Windows.
Returns an handle to the HPALETTE used by this colormap. If no HPALETTE is being used, this function returns zero.
static void QtGui.QColormap.Initialize |
( |
| ) |
|
|
static |
static QColormap QtGui.QColormap.Instance |
( |
int |
screen = -1 | ) |
|
|
static |
Returns the colormap for the specified screen. If screen is -1, this function returns the colormap for the default screen.
new uint QtGui.QColormap.Pixel |
( |
QColor |
color | ) |
|
Returns a device dependent pixel value for the color.
See also colorAt().
new int QtGui.QColormap.Size |
( |
| ) |
|
Returns the size of the colormap for Indexed and Gray modes; Returns -1 for Direct mode.
See also colormap().
SmokeInvocation QtGui.QColormap.interceptor |
|
protected |
virtual System.IntPtr QtGui.QColormap.SmokeObject |
|
getset |