Download Print this page

OKIDATA Microline 93 User Manual page 121

Okidata microline personal printer user's manual

Advertisement

- - - - - - - - - - - - -
Bells and Whistles
Next,
add
up the decimal values
of the
positions
where you
want dots to
appear:
Column
Position value
1 2 3 4 5 6 7
1
2
4
8
16
32
64
,
.,
\.
j
r
\..
r-'I
r......
r~
...
\.
.) \.. .)
.,
,
,
j
,
...
r~
,
r "
\.. ,J
...
~
~
"
127
65 65 65 65 65
127
Column total
Our LPRINT
statement begins with
CHR5(3)
to
enter
graphic
mode,
then
includes
the
decimal
values of
the
7 columns and
ends wi
th
CHR$(3);CHR${2)
to
exit graphic mode:
10 LPRINT
CHR$(3) ;CH
R$(127)
;CH
R$
(65)
;C
HR$(65
);
CH
R$(65)
;C
H
R${65) ;C
HR$(65)
;CHR$(127)
;C
H R${3);
CHR$(2)
If
your version of
BASIC has
t he
STRING$
function, you can
make
life
easier by using
STRING$(5,65)
instead
of repeating
CHR${65)
5 times.
Here's what you should get
when
you
RUN
it:
[]
A Word
about
Reso
lution
Notice
that
our sample box isn't exactly square, even though
it's
7
dots high
and 7
dots
wide.
This is because
the spacing
~f
the
dots
-
or "resolution"
-
is different hori
zo
ntally
and
vertically.
A
quick
explanation should clear
things up
.
Each dot is
1
/72"
in
diameter.
Resolution
-
how
closely spaced the
dots are
-
is measured in dots
per
inch (DPI
).
The vertical
115

Advertisement

loading

This manual is also suitable for:

Microline 92