BIT IMAGE GRAPHICS ---------------------- By Wayne Wright January 4, 1983 ABSTRACT -------- This disk contains twenty Bit-Image-Graphic (BIG) files. They are printable on Epson MX-80/100 printers with Graftrax ROMS. The resulting printouts will have dot resolution of 960 across by 880 vertical. They were all generated by GRAFPAC-80, a general purpose graphics program sold by M.E.S.C., Salisbury MD. 21801, Phone: 301-7442-7333. Most of the files contained herin were done with BASIC. One or two were done with 8080 FORTRAN. The source code for several of the programs is provided. BACKGROUND: The files herin were generated by the Grafpac-80 general purpose graphics program. Many were (are) used by MESC as demonstrations on the distribution disk. They are being released to the public domain via this disk file. All of the files on the disk of file type '.BQG' are s q u e ezed Bit-Image-Graphs. When unsqueezed they will become 'BIG' files - literally. Many will grow by a factor of seven. Feel free to distribute any of the files of the set. Many of the programs which generated the 'BIG' files are included on the disk. Most are written in BASIC and a few are written in 8080 FORTRAN. The FORTRAN programs require linkage to a subroutine package supplied by MESC. The BASIC programs require a FUNCTION library which is included herin. It is GPFN10.BAS. The BASIC and FORTRAN programs require MESC'S Grafpac-80 program for operation. However, they will generate command/data files without Grafpac. Grafpac is only required to convert the command/data file to the actual graph. PURPOSE: The purpose of this disk is to demonstrate hi-resolution graphics on low-cost personal computer equipment ie; Epson MX-80/100 printers. The graphs included on this disk use maximum resolution onthe EPSON printers. DESCRIPTION: This disk contains: * o Four programed line-drawing examples. o Two nudes. * o Three 2-D math function graphs. * o One 3-D math function. o A map of the USA. * o A pie chart. * o Two rectilinear graphs and programs. o Three Space shuttle line drawing. o Several other digitized line drawing. The items marked with '*' are given in BASIC or FORTRAN source code and in 'BIG' files. DISK CONTENTS: The package included the following files: DESCRIPTION: NUMBER SIZE NAME COMMENTS bit-graf.doc CONTENTS OF bit-graf 00.1 1K CHAR-GEN.BAS Program to show characters 00.2 3K CHAR-GEN.BQG Graphics from above 00.5 5K D16.BQG Graph of Grapac usage 00.7 8K DF2. Data file for GRAPH-1.COM 00.9 6K ET-MX.BQG Line drawing of E.T. 00.12 6K FSHUT-MX.BQG Front view of Space Shuttle 00.13 4K GIRL1-MX.BQG Nude 00.14 4K GIRL2-MX.BQG Nude 00.15 3K GPFN10.BAS BASIC function library for GP 00.16 3K GPTEST.BAS Test GP (GRAFPAC) facilities 00.17 7K GPTEST.BQG Output graph from above 00.20 5K GRAPH.BQG Output from BASIC Rectilinear 00.21 5K GRAPH-1.BQG Output from FORTRAN "" "" 00.22 3K GRAPH-1.FOR Source that generated above 00.23 2K GRAPH-1A.FOR more... 00.24 4K GRAPH-1B.FOR even more... 00.25 1K GRAPH-1C.FOR Yet another module!!!!!! 00.26 3K HAPPYFC.BQG Graph of 'Happy face' 00.27 1K HEXAGON.BAS BASIC program rotating hexagon 00.28 17K HEXAGON.BQG Output from above 00.29 5K HOUSE-MX.BQG A line drawing of a house 00.30 3K INTRO.BAS Introduction to Grafpac 00.36 6K PIE.BAS Real nice pie chart program 00.37 4K PIE-MX.BQG Output from above 00.39 1K POLAR.BAS Antenna pattern program 00.40 3K POLAR.BQG Graph of simulated antenna ptrn. 00.44 6K SHUT2-MX.BQG Downward view of Space shuttle 00.46 8K SP-SHUT.BQG Shuttle coming in for landing 00.49 1K SXOX2D.BAS Program for 2-D plot of Sin(x)/x 00.50 2K SXOX2D.BQG Output from above 00.51 2K SXOX3D.BAS Program for Sin(x)/x * sin(z)/x 00.52 14K SXOX3D.BQG 3-D plot from above program 00.55 1K TITLE.BAS Program for Grafpac title line 00.56 3K TITLE.BQG Output from above 00.57 7K USA-MX.BQG Map of the USA BQG FILES: These files are "S Q U E EZED" 'BIG' files. They may be from two - five times smaller than corresponding 'BIG' files. Use the RCPM program 'USQ.COM' to un s q u e e z e the 'BQG' files. If all of the 'BQG' files were unsqueezed they would require over 500k of storage. BIG FILES: This is what you get when you unsqueeze a 'BQG' file. A 'BIG' type file is what you can print on your MX-80 or MX-100 printer. These files are 'BIT-IMAGE-GRAPHS'. These were generated by the Grafpac-80 program by MESC, Parkhurst Dr. Salisbury MD. 21801, Phone: 301-7442-7333. If your printer will print the 'BIG' files Grafpac will work fine on your system. Grafpac is available for CP/M, TRS-DOS Model I and III systems. Other operating systems for the Radio Shack computers will work as well. PROGRAMS: Several BASIC programs and a few FORTRAN programs are included in this package. They are the programs which generated several of the graphs contained herin. The programs will probably run on your system; however, they will produce the intermediate command/data file required by Grafpac: not a plot. Grafpac reads these command/data files and generates the plot. Grafpac can be purchased for several other printers. Contact MESC for information about your printer. I know a prowriter 8510 version is available. Versions for other printers read the same command/data files so all of the programs contained herin will work for the other printers as well. A version is available for X-Y plotters too; Once again, same command/data files. USING YOUR FAVORITE LANGUAGE WITH GRAFPAC: Grafpac reads all commands and data from a disk file. A command/data file consists of a stream of 16 bit signed integers. Integers between -32768 and -32000 are reserved for commands. All other numbers represent X-Y data. 26 commands are supported at this time. Any language capable of writing 16 bit integers to a disk file can be used to command Grafpac. Programs have been written in: BASIC, FORTRAN, PLI, JRT-PASCAL, MT-PASCAL, Janus- ADA, and C. Others should adapt as well. MESC sells subroutines for FORTRAN and PLI. REQUIRED HARDWARE: The following hardware will be required to print a 'BIG' file: o MX-80 or MX-100 printer with Graftrax ROMS. o Eight bit serial or parallel interface o Computer with CP/M, or TRS-DOS CONFIGURATION: Your MX-80/100 printer MUST be set to print and linefeed on CR only. The 'BIG' files do not contain any linefeeds because my printer is setup that way. If you purchase Grafpac, instructions are provided on configuration for sending CR-LF to the printer. Your hardware interface MUST be eight bits wide because the Epson uses eight bit binary graphics data. If your interface is seven bits the 'BIG' files will drive your printer crazy! REQUIRED SOFTWARE: To print a 'BIG' file you will need a program to copy the disk file to your printer. CP/M users should use PIP. PIP is good for this because it buffers the file up in ram and it can copy binary data from here to there. PIP with the [O] option does not stop on the CP/M-ASCII eof '1A hex'. There may be many '1A hex' digits in a 'BIG' file. The buffering is nice because in reduces the number of disk accesses during printing. One line of graphics data on the printer represents 960 characters! If a disk access is made during this type of dump, the printer will return to the begining of the line to re-register. Most printer will not re-register closer than one or two dots. When printing from a buffered program, or Grafpac directly, the disk is not accessed during printing. To print a 'BIG' file, do the following: USQ FILENAME.BQG Unsqueeze the file PIP LST:=FILENAME.BIG[O] Send it to the printer After printing, you may wnat to erase the 'BIG' file to conserve disk space. It is better to keep the 'BIG' files on the disk squeezed. The [O] option commands PIP to ignore the ASCII EOF (1A hex). CONCLUSION: The Grafpac-80 program provides a unique, powerful and professional graphics capability for the personal computer user. It is easy to use from a varity of microcomputer languages and systems. For more information on the program call or write: MESC Parkhurst Dr. Salisbury Md. 21801 telephone: 301-742-7333