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
TheResizePalette
function sets the palette specified insrcPalette
to the number of entries indicated in thesize
parameter. IfResizePalette
adds entries at the end of the palette, it sets them topmCourteous
, with the RGB values set to (0,0,0)--that is, black. IfResizePalette
deletes entries from the end of the palette, it safely disposes of them.