Important: The information in this document is obsolete and should not be used for new development.
Palette2CTab
Copies the colors of a palette into a color table.
pascal void Palette2CTab( PaletteHandle srcPalette, CTabHandle dstCTab);
srcPalette
- A handle to the palette whose colors are to be used.
dstCTab
- A handle to the color table to receive the colors. Color tables are described in the chapter "Color QuickDraw" of Inside Macintosh: Imaging With QuickDraw.
DISCUSSION
ThePalette2CTab
function copies all of the colors from an existing palette structure into an existing color-table structure. If the structures are not the same size, thenPalette2CTab
resizes the color-table structure to match the number of entries in the palette structure. If either the palette handle or the color-table handle isnil
,Palette2CTab
does nothing.