HP (Hewlett-Packard) PCL Printer User Manual


 
EN Using Palettes 3-3
Saving the Palette
The current palette is destroyed when a new palette is created. The
Push/Pop Palette command (
?*p#P) can save (push) the current
palette and then restore (pop) it.
Push/Pop Palette Command
This command pushes or pops the palette from the palette stack.
?*p#P
A value of 0 (
?*p0P) pushes a copy of the active palette onto the
palette stack. When a palette is pushed, the active palette is not
affected.
A value of 1 (
?*p1P) pops the most recently pushed palette and
destroys the active palette; the popped palette becomes the active
palette. As with any stack, the last item pushed is the first item
popped.
Pushing a palette saves the following parameters:
Color definitions for each palette entry
Pen widths (for HP-GL/2 use)
Color space specification
Number of bits per index
Pixel encoding mode
Number of bits per primary
Color treatment
Render algorithm
# = 0 - Push (save) palette
1 - Pop (restore) palette
Default =0
Range = 0, 1 (invalid values are ignored)