Important: The information in this document is obsolete and should not be used for new development.
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
TheResizePalettefunction sets the palette specified insrcPaletteto the number of entries indicated in thesizeparameter. IfResizePaletteadds entries at the end of the palette, it sets them topmCourteous, with the RGB values set to (0,0,0)--that is, black. IfResizePalettedeletes entries from the end of the palette, it safely disposes of them.