
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 | |
1B 62 n1 | ...n5 | Data | hex | |
27 98 n1... | n5 | Data | decimal |
|
Prints a black & white Windows bitmap
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
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
ESC s n1 | data |
|
|
| Send | |
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: | |
|
|
|
|
|
| |
|
|
| <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 |