Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands66
A776 (B780) Programming Guide A776-PG00001 C 12/09
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 le)
Hexadecimal: 1B (+*.BMP le)
Decimal: 27 66 77 (+*.BMP le)
Value: Maximum width = 576
(640 for 8.5 mm paper)
Maximum height = 512
Enters a downloaded BMP logo into RAM or ash.
The downloaded BMP logo can be printed by using the print downloaded bit image (1D 2F m) command.
To downloaded BMP le to save it as a logo, send the hexadecimal code 1B followed by the whole BMP le.
The printer decodes the BMP le header and will save the image data after checking important parameters, such as
width, height, and the number of colors (only monochrome images are accepted).
BMPs and bit images are denable 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 ash memory had lled up with inactive logo 0 denitions upon next power
cycle). Warnings about the eect of running out of dened 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 ash.
The downloaded BMP le can be printed by using the print downloaded bit image (1D 2F m) command.
Exceptions
This command is valid only for the receipt station. This command is valid only for monochrome logos.
Related information
Microsoft BMP bitmap le format.
See Select the Current Logo (1D 23 xx) for additional information.
See Download Logo Image (1D 84) for information concerning color logos.
Select bit image mode
ASCII ESC * m n1 n2 d1 ... dn
Hexadecimal 1B 2A m n1 n2 d1 ... dn
Decimal 27 42 m n1 n2 d1 ... dn
Value of m:
Receipt Station
Value of m Mode No. of dots (vertical) No. of dots (horizontal)
0 8-Dot single-density 8 (68 DPI) 0–288 (101 DPI)
1 8-Dot double-density 8 (68 DPI) 0–576 (203 DPI)
32 24-Dot single-density 24 (203 DPI) 0–288 (101 DPI)
33 24-Dot double-density 24 (203 DPI) 0–576 (203 DPI)
Continued . . .