Name
SetPaletteDepth -- set palette depth (V9.0)
Synopsis
SetPaletteDepth(id, depth)
Function
This function sets the depth of the palette specified by id to the depth specified in depth. depth must be a bit depth ranging from 1 (= 2 colors) to 8 (= 256 colors). See Palette overview for details.

Inputs
id
identifier of palette to modify
depth
desired new palette depth (ranging from 1 to 8)
Example
SetPaletteDepth(1, 8)
The code above changes the depth of palette 1 to 8 (= 256 colors).

Show TOC