home *** CD-ROM | disk | FTP | other *** search
- REM -------------------------------------------------------
- REM HARDCOPY.INC
- REM Ausgabe des Bildschirms auf Epson-kompatiblen Druckern
- REM -------------------------------------------------------
- REM (c) 1988 by HEIMSOETH Software / Technical Support
- REM veröffentlicht in TOOLBOX 12/88
- REM -------------------------------------------------------
- REM Compiler: Turbo Basic V1.01e
- REM -------------------------------------------------------
-
- SUB HardCopy(xmin%, ymin%, xmax%, ymax%, PrinterMode%)
- LOCAL x%, y%, i%, Byte%
-
- WIDTH "LPT1:",5000
- LPRINT CHR$(27); CHR$(64)
- LPRINT CHR$(27);"3";CHR$(12);
-
- FOR y% = ymin% TO ymax% STEP 8
- LPRINT CHR$(27);"*";CHR$(PrinterMode%);_
- CHR$((xmax%+1) MOD 256);CHR$(xmax% \ 256);
- FOR FOR x% = xmin% TO xmax%
- Byte% = 0
- FOR i% = 0 TO 7
- Byte% = Byte% * 2 + POINT(x%, y% + i%)
- NEXT i%
- LPRINT CHR$(Byte%);
- NEXT x%
- LPRINT
- NEXT y%
- LPRINT CHR(12)
-
- END SUB