beautypg.com

Printronix MVP Series User Manual

Page 103

background image

Graphics

5–13

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 Graphics”
20 LPRINT CHR$(27);“K”;CHR$(24);CHR$(1);
30 FOR N=1 TO 40
40 RESTORE
50 FOR I=1 TO 7
60 READ R
70 LPRINT CHR$(R);
80 NEXT I
90 NEXT N
100 DATA 73, 146, 36, 255, 36, 146, 73
110 LPRINT

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