|
| Relationship between graphics data and needles: | |||||
|
| Needle | Data byte | ||||
|
|
| ∙ |
|
|
|
|
|
| 1 |
| Bit 7 |
| ||
|
|
| ∙ |
|
|
|
|
|
| 2 | Bit 6 |
| |||
|
|
| ∙ |
|
|
|
|
|
| 3 | Bit 5 |
| |||
|
|
| ∙ |
|
|
|
|
|
| 4 | Bit 4 |
| |||
|
|
| ∙ |
|
|
|
|
|
| 5 | Bit 3 |
| |||
|
|
| ∙ |
|
|
|
|
|
| 6 | Bit 2 |
| |||
|
|
| ∙ |
|
|
|
|
|
| 7 | Bit 1 |
| |||
|
| 8 | ∙ |
|
|
|
|
|
| Bit 0 |
| ||||
Example 1 | 10 | REM bit image print | |||||
| 20 | WIDTH "LPT1:",255 |
|
|
30LPRINT CHR$(27);"%3";CHR$(80);CHR$(0);
40GOSUB 100:LPRINT " 60 dpi"
50LPRINT CHR$(27);"%4";CHR$(80);CHR$(0);
60GOSUB 100:LPRINT " 120 dpi"
70LPRINT CHR$(27);"%7";CHR$(80);CHR$(0);
80GOSUB 100:LPRINT " 240 dpi"
90END
100FOR N=1 TO 80
110LPRINT CHR$(255);
120NEXT N
130RETURN