Programming

Graphics Commands

45

Graphics Commands

In 80 mm printers, the line length is 72 bytes and in 112 mm printers it is 104 bytes.

ESC b n1 n5...

data

 

Print Bitmap at XY-position

1B 62 n1

...n5

Data

hex

27 98 n1...

n5

Data

decimal

 

Prints a black & white Windows bitmap (BMP-file) at the specified X-Y position. The bit-map must be a complete uncompressed Windows bitmap where the data starts with BM. Max size is limited to the free RAM printed on the self-test printout.

n1

n2n3

n4n5

data

.

Always 0

Two byte definition of the X print position (in pixels).

Two byte definition of the Y print position (in pixels).

Bitmap data.

After the bitmap has been printed, the cursor will return to the X-position that it had before the bitmap command was issued.

Selecting horizontal mode (with <ESC>o<0>) prints the image in portrait orientation, while selecting the vertical mode (with <ESC>o<1>) prints the image in landscape orientation.

Note • The Y print-position and horizontal/vertical orientation only works if fixed page length is used.

ESC s n1

data

 

 

 

Send Dot-line, 203 dpi

1B 73 n1

Data

 

Hex

 

27 115 n1

Data

 

Decimal

 

 

 

 

Sends one line of dot data. This command is used to build images, one dot line at a time by the

 

 

printer driver and should not be combined with text commands.

 

 

 

 

 

 

 

 

 

n

 

Determines the number of bytes. Range: 1-255.

 

 

 

 

 

 

 

 

 

<data>

 

1 – x bytes, where x is the printhead width in bytes. The printhead width

 

 

 

 

 

 

is in the spec. of the printer.

 

 

 

 

 

 

 

Example • 80 mm printers use 72 bytes

Example • 112 mm printers use 104 bytes

Caution • Always send the No. of bytes that you specify!

If more than the specified No. of bytes are received, the rest of the bytes will be interpreted as text or commands. This can cause any kind of problems in the printer as graphics data can contain any hex value. If you specify less data then the actual printhead width, the printer will fill the rest of the dot line with spaces.

10/05/2009

TTP 7030™ Technical Manual

P1003636-002

Page 45
Image 45
Zebra Technologies TTP 7030 technical manual Graphics Commands, Determines the number of bytes. Range