CognitiveTPG A799 User Manual

Page 73

Advertising
background image

Chapter 4: Programming Commands

73

Revision D 12/09

A799-PG00001D

Color shade mode (ColorPOS

®

)

ASCII

GS 0x87 m

Hexadecimal 1D 87 m

Decimal

29 135 m

This applies a mixing of color into any monochrome objects such as text and monochrome logos. Rather than fading
away, this mode transitions a character or logo from the current color in which it would normally be printed to the other
color. The parameter m specifies the shading effect and has an initial value of 0 which signifies no effect. m specifies the
percentage of shading, 0 <= m <= 100.
m specifies the percentage of shading, 0 <= m <= 100.
m = 0 is the initial value and turns this mode off.
Note: Only a few gradations will be perceptible, so large increments of m, such as 20, should be used. If a reverse print

mode is on, the shade effect will be applied to the background only.
When the current color mode is set to black, increasing values of m relate to the relative amount of paper-color that
replaces black dots. Analogously, when the paper-color is the current color, m defines the relative amount of black color
dots replacing the paper-color ones.
Both text and monochrome graphics are affected by this command.
Turning color shade mode on, turns monochrome shade mode off.

Logo print with color plane swap (ColorPOS

®

)

ASCII

GS 0x89 n m

Hexadecimal 1D 89 n m

Decimal

29 137 n m

This command will print logo n. The command is ignored if a logo with index n has not been defined. If m = 0 the color(s)
as defined in the logo are used; if m = 1 and if the logo is a color one, then the two color planes (black and paper-color) in
the logo are swapped.

Form and merge real time surround graphic (ColorPOS

®

)

ASCII

GS 0x90 m x y o p q

Hexadecimal 1D 90 m x y o p q

Decimal

29 144 m x y o p q

This command will print a real-time graphic style designated by m. m = 0 rectangle, m =1 oval, m =2 ellipse (if printed in a
square area the ellipse becomes a circle), m = 3 is a 5 point star, m = 4 is a free hand underline, m = 5 is a free hand ellipse
and other values of m reserved for future styles. This graphic is formed into a RAM based graphics buffer, and the buffer
state is set to “graphic merge pending”.
Whenever the buffer is in the pending merge state and print output is started, the state will be changed to frozen and a
merge process started (logically OR-ed graphic data) into the print lines that follow. The application determines how
close the graphic is to any printed character data by subsequent printing of blank lines or blank dot rows. The merge
process stops when the buffer is exhausted or its state changed (by a save graphics buffer as logo or new form and merge
real time surround graphics command). The form and merge real time surround graphics command can be given multiple
consecutive times, allowing the application to set up a multi-polygon background before starting its printout with placed
text or logo.

Continued...

Advertising