Carbon


ResizePalette

Header: Palettes.h Carbon status: Supported

Changes the size of a palette.

void ResizePalette (
    PaletteHandle p, 
    SInt16 size
);
Parameter descriptions
p

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.

VERSION NOTES

The ResizePalette function is available only with system software versions 6.0.5 and later and with the 32-Bit QuickDraw system extension.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)