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.