ZEBRA MZ 320 3" 4mb Direct Mobile Thermal Receipt Printer With Bluetooth

Programming Manual - Page 94

For MZ 320.

PDF File Manual, 497 pages, Read Online | Download pdf file

MZ 320 photo
Loading ...
Loading ...
Loading ...
Mobile Printing Systems
CPCL Programming Manual
Section 7
Graphics
pg. 7-7
GRAPHICS Commands
Bit-mapped graphics can be printed by using graphics commands. ASCII hex (hexadecimal) is
used for expanded graphics data (see example). Data size can be reduced to one-half by utilizing the
COMPRESSED-GRAPHICS commands with the equivalent binary character(s) of the hex data. When
using CG, a single 8 bit character is sent for every 8 bits of graphics data. When using EG two characters
(16 bits) are used to transmit 8 bits of graphics data, making EG only half as efficient. Since this data is
character data, however, it can be easier to handle and transmit than binary data.
Format:
{command} {width} {height} {x} {y} {data}
where:
{command}: Choose from the following:
EXPANDED-GRAPHICS (or EG): Prints expanded graphics horizontally.
VEXPANDED-GRAPHICS (or VEG): Prints expanded graphics vertically.
COMPRESSED-GRAPHICS (or CG): Prints compressed graphics horizontally.
VCOMPRESSED-GRAPHICS (or VCG): Prints compressed graphics vertically.
{width}: Byte-width of image.
{height} Dot-height of image.
{x}: Horizontal starting position.
{y}: Vertical starting position.
{data}: Graphics data.
Graphics command example
Input:
! 0 200 200 210 1
EG 2 16 90 45 F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F
F0F0F0F0F0F0F0F00F0F0F0F0F0F0F0F
FORM
PRINT
Output:
Note: Graphic output has been magnied. Actual size is 1/4 of output shown.
Loading ...
Loading ...
Loading ...