Important: The information in this document is obsolete and should not be used for new development.
Manipulating Palettes and Color Tables
You can use theCopyPalette
function to copy palettes from other palettes and from color tables, and you can use theResizePalette
function to resize palettes. TheRestoreDeviceClut
function restores the color table of a device to its default set of colors.CTab2Palette
copies the specified color table into a palette, and its opposite,Palette2CTab
, copies a palette into a color table. Each function resizes the target object as needed.