HP PCL/PJL reference (PCL 5 Color) - Technical Reference Manual
EN Using Color Modes (Color LaserJet, 5, 5M, DeskJet) B-13
Example:
Byte 2 (Number of Bits per Index)
In all pixel encoding modes, this byte sets the size of the palette to 2
n
,
where n is the number of bits per index.
• In pixel encoding modes 0 and 1 (indexed), where raster data
is interpreted as indices into a palette, this value specifies the
number of bits required to access all palette entries.
• In pixel encoding modes 2 and 3 (direct), this value determines
palette size, but has no effect on the specification of raster
data.
Byte 3 (Number of Bits for Primary #1)
This byte is ignored in pixel encoding modes 0 and 1, but affects the
black and white references in device-dependent color spaces. In
Device RGB, the black reference for primary #1 is set to 0 and the
white reference is set to 2
n
– 1, where n is the number of bits for
primary #1. These references are reversed in Device CMY color
space.
• In pixel encoding mode 2, this byte is ignored except in Device
RGB and Device CMY color space, where it designates the
number of data bits needed to specify primary #1, as well as
the number of data planes to be sent for primary #1.
• In pixel encoding mode 3, this byte designates the number of
data bits needed to specify primary #1.
?*v6W 00 03 00 08 08 08 # Binary data for CID
represented in hex. Sets color
space to RGB, pixel encoding
mode to 3. Palette size is
ignored. Send 8 bits to address
each primary value for a pixel.
?*r1A # Start raster.
?*b3W 45 06 30 # Each byte sets a primary
value for the first pixel and
moves to the next row (45
specifies the red, 06 the green,
and 30 the blue component
value of that pixel).