Download Pattern Command

The Download Pattern command provides the means for downloading the binary pattern data that defines the user pattern.

?* c # W [pattern data]

#= Number of pattern data bytes

Default

=

0

Range

=

0 – 32767 (HP Color LaserJet 8500 extends the range

 

 

to 0 to 65535; values outside the range are ignored)

The value field (#) identifies the number of pattern data bytes that follow the Download Pattern command. In addition to the binary pattern data, there are eight bytes of pattern descriptor (header) information included in this pattern data. The format for a 300 dpi resolution header is shown in Table 5-5, below.

Table 5-5. User-Defined Pattern Header (300 dpi resolution)

Byte

15 - MSB

8

7

LSB-0

Byte

 

 

 

 

 

 

0

Format (0)

 

Continuation (0)

 

1

 

 

 

 

 

 

2

Pixel Encoding (1)

 

Reserved (0)

 

3

 

 

 

 

 

 

4

Height in Pixels

 

 

 

5

 

 

 

 

 

 

6

Width in Pixels

 

 

 

7

 

 

 

 

 

 

8

Pattern image

 

 

 

 

 

 

 

 

 

 

Format (Byte 0)

This field indicates the downloadable pattern format:

Format 0

1 bit per pixel: black-and-white or foreground color. A

 

“1” bit indicates black or foreground color for a color

 

pattern. A “0” indicates either white or transparency,

 

depending on the source and pattern transparency

 

modes. A “0” cannot be colored.

 

 

Format 1

1 or 8 bits per pixel. This format uses the current

 

palette. Data is sent pixel by pixel, and the bits/index

 

field of the pixel encoding byte determines the

 

number of bits defining a pixel.

 

 

5-38 The PCL Print Model

EN

Page 102
Image 102
HP L 5 manual Download Pattern Command, Format Byte