Operation Manual
Combining text and graphics
You
can
mix
normal
text printing
and
graphics
on
the
same
line.
Here
is
an
example using
the
image
coded in the last section:
05 REM'SAMPLE 3
10 LPRINT"TEXT PRINTING" ;CHR$(27) ;CHR$(75) ;CHR$(11
);
CHR$
(0);CHRS(l);CHR$(2);CHR$(4);
CHR$
(9
);
CHRS(18);
CHR$(36) ;CHR$(72) ;CHR$(144) ;CHR$(32) ;CHR$(64);
CHR$(128);"TEXT PRINTING
AGAIN"
Here
is
the
result:
rEXT
PR.::NTIN,'
~
TEX:'
PR:NT:NG
AGAIN
The
printer
prints normally until it receives the
"start
graphics"
code.lt
then
prints
the
number
of
graphics columns specified
by
nl
and
n2
and
automatically
returns
to
normal
printing.
Note:
Be
careful to
entertheamountof
graphics
data
you
tell the
printer
to ex
pe
c
t;
othcrwtse, the results will
be
garbled.
Printing Multiline Graphics
One
LPRINT statement
cannot
print
more than one line of graphics,
so
you have to
enter
a
separate
LPRINT
statement
for each
subsequent
line of graphics.
To illustrate this,
add
these lines to the SAMPLE 2 program:
25
FOR J = 1
to
4
75 NEXT J
IBM
Modes
Advanced
Features
4-17