QColormap Class

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

Header: #include <QColormap>
qmake: QT += widgets

Public Types

enum Mode { Direct, Indexed, Gray }

Detailed Description

Member Type Documentation

enum QColormap::Mode

This enum describes how QColormap maps device independent RGB values to device dependent pixel values.

ConstantValueDescription
QColormap::Direct0Pixel values are derived directly from the RGB values, also known as "True Color."
QColormap::Indexed1Pixel 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.
QColormap::Gray2Similar 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.