Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

IMAGE_CMAP Struct Reference
[MGui Structures]

Colormap entry. More...


Data Fields

unsigned char blue
 Blue color component.

unsigned char green
 Green color component.

unsigned char red
 Red color component.

unsigned char index
 Palette index.


Detailed Description

Colormap entry.

A colormap is associated to an image with a fixed limited number of colors (usually 2, 16 or 256). An array of IMAGE_CMAP entries is always bound to an MIMAGE structure with an associated color palette.


Field Documentation

unsigned char IMAGE_CMAP::blue
 

Blue color component.

unsigned char IMAGE_CMAP::green
 

Green color component.

unsigned char IMAGE_CMAP::index
 

Palette index.

This field is intended for internal use. When the program runs in PaletteMode (nr of colors <= 256) this field stores the color index corresponding to the palette entry when the image is installed.

unsigned char IMAGE_CMAP::red
 

Red color component.


Generated on Sun Jun 29 13:03:08 2003 for MGui API by doxygen1.3-rc2