Graphics – CognitiveTPG A760 User Manual

Page 62

Advertising
background image

A760 User Guide: Programming Supplement
Chapter 4: Programming commands

62

Revision F January 2010

Graphics

These commands are used to enter and print graphics data and are described in order of their
hexadecimal codes.

Download BMP logo

ASCII:

ESC (+*.BMP file)

Hexadecimal: 1B (+*.BMP file)
Decimal:

27 66 77 (+*.BMP file)

Value:

Maximum width = 576

(640 for 8.5 mm paper)

Maximum height = 512

Enters a downloaded BMP logo into RAM or flash.
The downloaded BMP logo can be printed by using the
print downloaded bit image (1D 2F m) command.
To downloaded BMP file to save it as a logo, send the
hexadecimal code 1B followed by the whole BMP file.
The printer decodes the BMP file header and will save the
image data after checking important parameters, such as:

• Width,

• Height,

• Number of colors

(only monochrome images are accepted)

BMPs and bit images continue to be definable only for the
receipt station. However, there is no longer an automatic
erasure whenever the user downloads a character set (as
happened previously) as well as in the case where the
current logo was never set > 0, (the automatic erasure

if user flash memory had filled up with inactive logo
0 definitions upon next power cycle). Warnings about
the effect of running out of defined logo space during
a download apply (i.e. the command is ignored). The
application is required to manage user data space,
downloaded font space, and logo space.
After downloading a logo to the printer, wait 100 ms to
allow the printer time to write the logo to flash.
The downloaded BMP file can be printer by using the print
downloaded bit image (1D 2F m) command.

Exceptions

BMP file images that are not monochrome are put into the
print buffer. This command is only valid for the receipt
station.
This is only available in A758 emulation and A760 native
modes.

Related information

Microsoft BMP bitmap file format.

Advertising