Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 1 - Palette Manager Reference /
Constants and Data Types


The Palette Structure

A palette structure contains a header and a collection of color information structures, one for each color in the palette. The Palette data type defines a palette structure.

struct Palette {
   short pmEntries;        / *entries in pmTable */
   short pmDataFields[7];  / *private fields */
   ColorInfo pmInfo[1];
};
typedef struct Palette Palette;
typedef Palette *PalettePtr, **PaletteHandle;
Field Description
pmEntries
The number of ColorInfo structures in the pmInfo array.
pmDataFields
Private fields used by the Palette Manager.
pmInfo
An array of ColorInfo structures (page 1-5).

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996