HP deskjet 600 User Manual

Page of 124
HP PCL Commands
HP DeskJet 600, 700, 800, 900 & HP 2000 Series PCL Developer’s Guide
77
10.15
Raster Compression
Since raster images take a large amount of memory and processing time, raster data should
be reduced as much as possible. White-space data transfer can be reduced by sending empty
rows and planes (Esc * b 0 WEsc * b 0 V), or by offsetting the left graphic margin (Esc * r 1
A) or the vertical starting point (Esc * b # Y). The Compression Method (Esc * b # M) com-
mand provides several other ways of compressing data.
10.15.1
Compression Method
Determines how raster data is interpreted in the Transfer Raster by Row or Transfer Raster by
Plane commands. The compression method stays in effect until explicitly changed to another
method or reset by Reset (Esc E) or End raster (Esc * r C).
Method 0- Unencoded
This is a simple binary transfer: no compression.
Method 1- Run-Length Encoding
Method 1 interprets raster data as byte pairs. The first byte tells how many times the second
byte is repeated, i.e., a repetition count. The second byte is the data to be printed. The repeti-
tion count can be 0 through 255. A count of 0 means the byte pattern occurs once and is not
repeated; a count of 1 means the pattern occurs twice; and a count of 255 means the pattern
occurs 256 times.
TABLE 55.
Compression Method - 
Esc * b # M
Value
D
J
6
0
0
D
J
6
1
0
C
D
J
6
6
0
C
D
J
6
7
0
C
D
J
6
8
0
C
D
J
6
9
0
C
D
J
6
9
5
C
D
J
8
1
0
C
D
J
8
3
0
C
D
J
8
5
0
C
D
J
8
7
0
C
D
J
8
8
0
C
D
J
8
9
0
C
D
J
8
9
5
C
D
J
9
7
0
C
H
P
2
0
0
0
C
E
FFECT
0
4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4
Unencoded
1
4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4
Run-length encoding
2
4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4
Tagged Image File Format 
(TIFF) revision 4.0 “Packbits” 
encoding
3
4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4
Delta row encoding
9
4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4 4
4
Compressed replacement delta 
row encoding
Default
0
Range
0-3, 9 - Out of range values default to 0