Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QColormap Class Reference

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

Inheritance diagram for QtGui.QColormap:
Collaboration diagram for QtGui.QColormap:

Public Types

enum  Mode { Direct = 0, Gray = 2, Indexed = 1 }
  More...
 

Public Member Functions

 QColormap (QColormap colormap)
 
 
virtual void CreateProxy ()
 
new QColor ColorAt (uint pixel)
 
 
new
System.Collections.Generic.List
< QColor
Colormap ()
 
 
new int Depth ()
 
 
new QColormap.Mode mode ()
 
 
new uint Pixel (QColor color)
 
 
new int Size ()
 
 
new void Dispose ()
 

Static Public Member Functions

static void Cleanup ()
 
static System.IntPtr hPal ()
 
 
static void Initialize ()
 
static QColormap Instance (int screen=-1)
 
 

Protected Member Functions

 QColormap (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

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

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

QtGui.QColormap.QColormap ( System.Type  dummy)
protected
QtGui.QColormap.QColormap ( QColormap  colormap)

Constructs a copy of another colormap.

Member Function Documentation

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 QColormap.Mode QtGui.QColormap.mode ( )

Returns the mode of this colormap.

See also QColormap::Mode.

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().

Member Data Documentation

SmokeInvocation QtGui.QColormap.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QColormap.SmokeObject
getset