Zebra Technologies 7030 Manuale Utente

Pagina di 128
45
Programming
Graphics Commands
10/05/2009
TTP 7030™ Technical Manual
P1003636-002
Graphics Commands
In 80 mm printers, the line length is 72 bytes and in 112 mm printers it is 104 bytes. 
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.
.
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.
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.
ESC b  n1...n5
data
Print Bitmap at XY-position
1B 62  n1...n5
Data
hex
27 98  n1...n5
Data
decimal
n1
Always 0
n2n3
Two byte definition of the X print position (in pixels).
n4n5
Two byte definition of the Y print position (in pixels).
data
Bitmap data.
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
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.