Image data bytes, Graphics programming example – Genicom GEK 00031B User Manual

Page 151

Advertising
background image

GEK-00029A

5000 Series Programmer’s Manual

151

Image Data Bytes

The FX-286e printer supports both 8-pin and 9-pin vertical formats.
Since this emulation supports only 8-pin graphics, 9-pin graphics
will not be explained or illustrated here. When 9-pin graphics are
sent to this printer. the byte containing the 9th bit is discarded.

Each image data byte represents a vertical column of eight dots. The
most significant of the eight bits controls the top pin of a column and
the least significant bit controls the bottom pin of that column The
first byte of data (v1) Is the first column (v2) is the second column,
and so on. The illustration below shows byte values of various dot
combinations.

Weight

Wire

Graphics Dot Pattern

128

1

! ! !

! ! !

64

2

!

!

!

!

32

3

!

!

!

16

4

!

!

!

8

5

!

!

4

6

!

!

2

7

!

!

1

8

! ! !

0

0

0

112 136 132 130 65

49

65 130 132 136 112

0

0

Image Byte Values

Graphics Programming Example

100 WIDTH "LPT1:",255
110 FOR N - 1 TO 4
115 LPRINT CHR$(27);"K";CHR$(80);CHR$(0);
120 FOR K - 1 TO 5

140 LPRINT CHR$(0);CHR$(0);CHR$(0);CHR$(112);
150 LPRINT CHR$(136);CHR$(132);CHR$(130);
160 LPRINT CHR$(65);CHR$(49);CHR$(65);
170 LPRINT CHR$(130).CHR$(132);CHR$(136);
180 LPRINT CHR$(112);CHR$(0):CHR$(0);

190 NEXT K
200 PRINT
210 NEXT N
220 LPRINT "DONE"
230 END

Printed Results of Sample Program

Advertising