Color Mapping of Grey Scale Images

On 8-bit desktops, only one color map is in use. You have control over a limited range of this color map using the ccDisplay::colorMap() function.

The color map applies for both Windows host-based applications and non-Windows embedded applications.

Color map (hardware palette) used for 8-bit desktops

On non-8-bit desktops, there are two color maps: one for overlay graphics (the figure above) and one for images (the figure below). The image color map contains only grey-scale values by default. You have full control over the entire 256-element range of the image color map using the extended color map function ccDisplay::colorMapEx(). The ccDisplay::image() function uses the image color map on non-8-bit desktops.

Image color map used for non-8-bit desktops