CognitiveTPG A760 User Manual

Page 69

Advertising
background image

A760 User Guide: Programming Supplement

Chapter 4: Programming commands

69

Revision F January 2010

Download logo image (ColorPOS

®

)

ASCII

GS 0x84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m

Hexadecimal 1D 84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m

Decimal

29 132 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m

Value of m:

1 = monochrome

2 = two-color

Max n1 =

576/8 for 80 mm paper or

640/8 for 82.5 mm paper

The latest value from the set current logo command will be
the logo index to be used to store the downloaded graphic.
m identifies whether the image is monochrome (which
requires one parameter bit row description) or two-color,
which requires a pairing of bit descriptions for each row.
n1 * n2 define a rectangular image n1 bytes wide and n2

bytes long. n1*8 specifies the number of dot columns, and

n2*8 the number of dot rows. That is, each row is defined
by an integral number of bytes and the number of rows is
also an integral number of bytes. Note that n2 can be any
length, subject to memory space availability.

For each color dot row starting at the top left, a two part
parameter byte string is used to define first, all dots that
are not white, and the second half defines all dots where
the color = black. Thus all dots that are on (=1) in the first
half but not on in the second half select the paper-color. A
sequence of these raster row strings is used to specify the
complete logo. In the monochrome case, only one bit is
needed per row. This is the same structure as used for the
definitions of print raster monochrome graphics and print
raster color graphics.
This command is used for storing a logo of n1 by n2 size
indexed by the current logo value.
After downloading a logo to the printer, wait 100 ms to
allow the printer time to write the logo to flash.

Apply shading to logo (ColorPOS

®

)

ASCII

GS Ox8B n m o

Hexadecimal 1D 8B n m o
Decimal

29 139 n m o

This command will apply shading effect m to logo n and
store it at index o, also extending width to full horizontal
size if logo n is not at full paper width.
n must be the index value of an existing logo
0 <= m <= 100, possibly resulting in a logo suitable for
background watermark mode use
o can be any value, and the logo will be placed according
to the current setting of user storage into RAM or flash
memory.

An application might use a high value of m to shade out
the logo if the original image has a significant number of
“on” dots to allow for future foreground print readability.
Note: The old logo size and current justification mode are

used to create a new logo image at full paper width size by

filling in white space at either or both sides if needed. This

new logo will provide for minimal performance impacts

when it is selected for use in watermark mode.
After sending the shading command, wait 5 seconds
to allow the printer to apply the shading and write the
results to flash.

Advertising