The simple PAL format is defined as follows:
RIFF('PAL' data( <palette:LOGPALETTE> ))
LOGPALETTE is the Windows 3.0 logical palette structure, defined as follows:
typedef struct tagLOGPALETTE { USHORT palVersion; USHORT palNumEntries; PALETTEENTRY palPalEntry[]; } LOGPALETTE;
The LOGPALETTE structure fields are as follows:
Field
The colors in the palette entry table should appear in order of importance. This is because entries earlier in the logical palette are most likely to be placed in the system palette.
The PALETTEENTRY data structure specifies the color and usage of an entry in a logical color palette. The structure is defined as follows:
typedef struct tagPALETTEENTRY { BYTE peRed; BYTE peGreen; BYTE peBlue; BYTE peFlags; } PALETTEENTRY;
The PALETTEENTRY structure fields are as follows:
Field