Bit Image Sample Program
The following sample program written in BASIC produces single density bit image graphics of the pattern shown in Figure
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
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 |