Graphics; Print Raster Graphics; Download Bmp Logo - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

Revision D 10/13

Graphics

These commands are used to enter and print graphics data and are described in order of their hexadecimal codes.
These commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but
there are 640 printable dots rather than 576 printable dots on 80 mm paper.

Print raster graphics

ASCII
DC1 n1.....nl (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper
Hexadecimal
11 n1.....n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper
Decimal
17 n1.....nl (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper
Value and range of n: n1 to n72/n80 corresponds to one dot row data for a thermal receipt printer.
Each bit defines whether or not a dot will be printed. This command is used for printing a graphic in real-time. Offsets,
page and any other modes or overlays, including watermark do not apply and are overridden by this command. A complete
rendering of the intended final image should have been done by the application before sending the dot rows.
MSB
n
n1
n2
n3

Download BMP logo

ASCII:
ESC (+*.BMP file)
Hexadecimal: 1B (+*.BMP file)
Decimal:
27 66 77(+*.BMP file)
Value:
Maximum width = 576 (640 for 82.5mm 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 100ms to allow the printer time to write the logo to flash.
Exceptions
BMP file images that are not monochrome are put into the print buffer.
Related information
Microsoft BMP bitmap file format.
This command is recognized in A798 native mode and in A794 emulation.
In A793 and LEGACY emulations, the BMP file bytes are put into the print buffer.
LSB
...
n72/80
A798-PG00001D
Chapter 4: Programming Commands
59

Advertisement

Table of Contents
loading

Table of Contents