HP (Hewlett-Packard) PCL 5 Printer User Manual


 
Draw second raster image (same image rendered using Error Diffusion)
Position cursor 1" from left
margin (absolute move-
ment) and 1/3" below cur-
rent position (relative
movement)
?*p300x+100Y
Select Error Diffusion
Render Algorithm
?*t4J
Start raster graphics with
the current x position as
the left graphics margin.
?*r1A
Specify mode 0 compres-
sion (uncompressed)
?*b0M
Transfer raster data by row
with 4200 bytes per row.
?*b4200W
(This section is shown in C code to show how Raster data is formatted.)
for (i=0;i<200;i++) /* Red block */
fprintf(prn, “%c%c%c”,255,0,0)
for (i=0;i<200;i++) /* Green block */
fprintf(prn, “%c%c%c”,0,255,0)
for (i=0;i<200;i++) /* Blue block */
fprintf(prn, “%c%c%c”,0,0,255)
for (i=0;i<200;i++) /* Send 4 more blocks of color*/
fprintf(prn, “%c%c%c”,216,218,50)
for (i=0;i<200;i++)
fprintf(prn, “%c%c%c”,249,120,15)
for (i=0;i<200;i++)
fprintf(prn, “%c%c%c”,158,81,200)
for (i=0;i<200;i++)
fprintf(prn, “%c%c%c”,45,120,249)
Switch to mode 3 compres-
sion (delta row encoded)
and send the remaining
rows, which are identical
?*b3M
(Repeat the following command 200 times)
Repeat the previous row ?*b0W
Send End Raster Graphics
command
?*rC
6-48 Raster Graphics6-48 Raster Graphics