Graphics Mode Printing
n1 and n2 are # of dots (horizontal resolution) of the image. This is
all off the top of my head... actually, I edited this by finding my
old Gemini 10x manual.
#dots=n1+*256*n2
This should be followed by the data (1 byte per horizontal dot). So if
#dots=720, you'd have 720 bytes.
These bytes depend on your printer. If your mode supports 8-bit, each
byte is a 1x8 strip (vertical). The numbering begins at the bottom of
your character. Say you want to print this character: (0 - off 1 - on)
00100
00100
00100
11111
00100
00100
00100
00100
A "+" in an 8x5 representation. n1=5, n2=0 The first column is, from
the bottom, "00001000".
This is 0*2^0+0*2^1+0*2^2+0*2^3+1*2^3+0*2^4+0*2^5+0*2^6+0* 2^7=8 (first
byte)
This is 0*2^0+0*2^1+0*2^2+0*2^3+1*2^3+0*2^4+0*2^5+0*2^6+0* 2^7=8 (2nd
byte)
This is 1*2^1+1*2^1+1*2^2+1*2^3+1*2^3+1*2^4+1*2^5+1*2^6+1* 2^7=255
(third byte)
This is 0*2^0+0*2^1+0*2^2+0*2^3+1*2^3+0*2^4+0*2^5+0*2^6+0* 2^7=8
(fourth byte)
This is 0*2^0+0*2^1+0*2^2+0*2^3+1*2^3+0*2^4+0*2^5+0*2^6+0* 2^7=8 (fifth
byte)
So, you should print chr$(x), for x={27,76,5,0,8,8,255,8,8}
Beware of chr$(13) being generated, as Basic likes to add a LF to a
CR.
The old Gemini had a setting for 7/72 line feed so you could ignore
the first bit. But my old TI-99 didn't have the chr$(13) problem, so I
could use all the pins at once...
Ben
Someone who remembers too much. The only part I had to change above
was I had "n1*256+n2"...
|