
Graphics
Bitmap Graphics and Logos
100
P1026208-001 Rev. B Software Integrator Guide 10/29/2010
Importing Graphics
The ZPL programming language has multiple methods to download graphic objects into
your Zebra ZPL kiosk printer. You have already been exposed to one graphic download
method (
~DG) when developing your prototype receipt with ZebraDesigner. For the ZPL
programmer, there is a Download Objects (
~DY) command that can be used to all object
types and supported formats and encodings supported by the printer.
The Download Objects (
~DY) command is not limited to preprocessed and converted
graphics. The Download Graphic (
~DG) command is used by Zebra applications and
utilities. It will be used ‘as is’ in a separate ZPL format file or copied into a configuration
format file. The
~DY command can be used to directly import black and white graphic data
files without a separate conversion process.
The
~DY command graphic import process takes place in a very similar manner to the
~DG command that is used by ZebraDesigner or ZebraNet Bridge. Since most of the
graphic file formats are binary and not made ASCII data, the graphic data can not normally
be imported into a ZPL program file because they are dissimilar data types. This is a text
editor or application issue. To get around this issue, the
~DY command is designed to
prepare the ZPL kiosk printer for the graphic file and its storage. The ZPL
~DY command
and parameter followed by the data as part of the ZPL
~DY command file or as a
supported graphics file sent immediately following to the printer.
See the
~DY command the ZPL Programmers guide for your ZPL kiosk printer. Here a few
guidelines and suggestions for storing graphics and applying them to this command.
• Store graphics in
E: or the factory optional B: flash memory. Do not use the
default
R: (RAM) memory. It is temporary and the graphic will be lost if the printer
is reset or powered is cycled.
• The filename can be up to 16 characters long (for ZPL kiosk printers).
• For the
~DY command’s b parameter (file format encoding):
• Choose
A for GRF Zebra raw data graphic format (ASCII or Zebra ZB64).
• Choose
B for BMP and PCX graphic formats (Binary).
• Choose
P for ZB64 converted PNG graphic formats.
• For the
~DY command’s x parameter (file extension):
~DY
Download Objects Downloads and installs wide variety of printer
usable programming objects: fonts (OpenType
and TrueType) and graphics.
~DG
Download Graphic
Use the ^DY command for new ZPL code.
Downloads an ASCII Hex representation of a
graphic image. This is used by ZebraDesigner for
graphics.
Command Name Description
Kommentare zu diesen Handbüchern