Palette Manager
Code Examples
Gray Scale Palette Example
Gray Scale Ramp Palette Example
Initialization and Allocation
DisposePalette Empty a palette's memory location
GetNewPalette Get a handle to a specified 'pltt' resource
InitPalettes Setup the Palette Manager
NewPalette Create a palette from an application
PMgrVersion Get version of the Palette Manager
Interacting With the Window Manager
ActivatePalette Revise the source window's palette after a status change
GetPalette Get a handle to a particular window's palette
SetPalette Set a destination window's color palette to source palette
values
NSetPalette Set a destination window's palette to source palette values
SetPaletteUpdates Set the update attribute of a palette
GetPaletteUpdates Return the update attribute of a palette
Color Palettes
PmBackColor Set window's RGB and index backcolor fields with palette
PmForeColor Set window's RGB and index forecolor fields with palette
SaveFore Return the current foreground color
RestoreFore Store the RGB color of the color specification record
SaveBack Return the current background color
RestoreBack Store the RGB color of the color specification record
Color Table Animation
AnimateEntry Change a palette color to a specific RGB
AnimatePalette Change many palette colors to new, specific, RGB values
Manipulating Palettes and Color Tables
CopyPalette Copy palettes from other palettes and color tables
ResizePalette Set specified palette to indicated size
RestoreDeviceClut Change a CLUT to its default state
CTab2Palette Copy a whole color table to a palette
Palette2CTab Copy a whole palette to a color table
Manipulating Palette Entries
GetEntryColor Access a palette entry from an application
GetEntryUsage Access the usage and tolerance fields of one palette color
SetEntryColor Change the color of a palette entry from an application
SetEntryUsage Change the usage and tolerance of a palette entry
Entry2Index Return the index for an entry in current palette