PALETTE: Color Palette Definition (92h)

The PALETTE record describes the colors selected in the Options dialog box, Color tab. Each rgch field contains 4 bytes: rgbRed, rgbGreen, rgbBlue, and an unused byte. The 3 color bytes correspond to the Red, Green, and Blue values in the Color Picker dialog box, and the unused byte is don't-care. The Color Picker dialog box appears when you click the Modify button on the Color tab. If the worksheet uses the default palette, the BIFF file does not contain the PALETTE record.

Record Data

Offset

Name

Size

Contents

4

ccv

2

Count of color values that follow

6

rgch

4

Color value of the first color in the palette

10

rgch

4

Color value of the second color in the palette

14

rgch

4

Color value of the third color in the palette

...

...

...

...

var

rgch

4

Color value of the last color (= ccv) in the palette