QColormap Class ReferenceThe QColormap class maps device independent QColors to device dependent pixel values. More... #include <QColormap> Public Types
Public Functions
Static Public Members
Detailed DescriptionThe QColormap class maps device independent QColors to device dependent pixel values. Member Type Documentationenum QColormap::ModeThis enum describes how QColormap maps device independent RGB values to device dependent pixel values.
Member Function DocumentationQColormap::QColormap ( const QColormap & colormap )Constructs a copy of another colormap. QColormap::~QColormap ()Destroys the colormap. const QColor QColormap::colorAt ( uint pixel ) constReturns a QColor for the pixel. See also pixel(). const QVector<QColor> QColormap::colormap () constReturns 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(). int QColormap::depth () constReturns the depth of the device. See also size(). HPALETTE 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. QColormap 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. Mode QColormap::mode () constReturns the mode of this colormap. See also QColormap::Mode. uint QColormap::pixel ( const QColor & color ) constReturns a device dependent pixel value for the color. See also colorAt(). int QColormap::size () constReturns the size of the colormap for Indexed and Gray modes; Returns -1 for Direct mode. See also colormap(). QColormap & QColormap::operator= ( const QColormap & colormap )Assigns the given colormap to this color map and returns a reference to this color map. This function was introduced in Qt 4.2. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |