SetPaletteDepth(id, depth)
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.
SetPaletteDepth(1, 8)The code above changes the depth of palette 1 to 8 (= 256 colors).