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 /
Palette Manager Functions / Manipulating Palettes and Color Tables


ResizePalette

Changes the size of a palette.

pascal void ResizePalette(
PaletteHandle srcPalette,
short size);
srcPalette
A handle to the palette to be resized.
size
The number of resulting entries in the palette.
DISCUSSION
The ResizePalette function sets the palette specified in srcPalette to the number of entries indicated in the size parameter. If ResizePalette adds entries at the end of the palette, it sets them to pmCourteous, with the RGB values set to (0,0,0)--that is, black. If ResizePalette deletes entries from the end of the palette, it safely disposes of them.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996