Bit Image Sample Program

The following sample program written in BASIC produces single density bit image graphics of the pattern shown in Figure 5–3. The 7 data bit pattern is repeated 40 times. The printed result of running the program is shown in Figure 5–4.

5 WIDTH LPT1:,255

10 LPRINT Single Density Bit Image Graphics20 LPRINT CHR$(27);“K;CHR$(24);CHR$(1); 30 FOR N=1 TO 40

40RESTORE

50FOR I=1 TO 7

60READ R

70LPRINT CHR$(R);

80NEXT I

90NEXT N

100DATA 73, 146, 36, 255, 36, 146, 73

110LPRINT

NOTE: A detailed description of the individual bit image control codes with examples is provided in the Programming chapter.

Figure 5–4. Sample Single Density Bit Image Graphics

Graphics

5–13

Page 103
Image 103
Printronix MVP Series user manual Bit Image Sample Program, Sample Single Density Bit Image Graphics