HP (Hewlett-Packard) PCL 5 Printer User Manual


 
MODE 1: INDEXED BY PIXEL
In mode 1, each pixel in a row is fully specified before any
bits are sent for the next pixel. The bits for each pixel form
a palette index number. Assuming 4 bits per index, the
underlined block below is the palette index for pixel 2 of
row 1 (i1 is lsb).
?*b#W row 1 i4 i3 i2 i1
i4 i3 i2 i1 . . .
?*b#W row 2 i4 i3 i2 i1 i4 i3 i2 i1 . . .
?*b#W row 3 i4 i3 i2 i1 i4 i3 i2 i1 . . .
Example:
?*v6W 00 01 04 04 04 04 # Binary data for CID
represented in
hexidecimal. Sets color
space to RGB, pixel
encoding mode to 1, palette
size to 16 (4 bits to address
palette index). Last 3 bytes
ignored.
?*r1A # Start raster.
?*b1W45 # Most significant nibble
selects palette index 4 for
the first pixel. Second pixel
is set to index 5. Move to
the next row.
?*b1W6A # First pixel is index 6,
second pixel is index 10.
Move to the next row.
?*b1W03 # First pixel is index 0,
second pixel is index 3.
Move to the next row.
2-10 Using Color Modes2-10 Using Color Modes