home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
vga
/
vgaprn.arc
/
VGAPRN.DOC
< prev
next >
Wrap
Text File
|
1988-06-12
|
16KB
|
397 lines
VGAPRN (c) Copr. 1988 Lawrence Gozum & Marvin Gozum
───────────────────────────────────────────────────
User Manual
DISCLAIMER
This product is distributed AS IS. The authors specifically disclaim
all warranties ,expressed or implied, including ,but not limited to,
implied warranties of merchantability and fitness for a particular
purpose with respect to defects in the diskette and documentation, and
program license granted herein, in particular, and without limiting
operation of the program license with respect to any particular
application use or purpose. In no event shall the authors be liable
for any loss of profit or any other commercial damage including but
not limited to special,incidental, consequential or other damages.
LICENSING AGREEMENT
You may use this program on a TRIAL BASIS only; this means that you
may freely evaluate the usefulness of this program for a reasonable
period. Should you find this program useful, you must register it
(see last section of this manual). You will then be provided with
the latest release of VGACAD (VGA Computer-Assisted Design) and latest
updates of all released utilities.
You may freely distribute copies of this program in its UNMODIFIED
state provided you do not include it in other software packages, with
the exception of distributing it as part of a bundle of Public Domain
or shareware programs on a single diskette. In addition you may not
charge more that $3.50 for copying and/or distributing this program in
the absence of any recognized Users Group guidelines.
WHAT IS VGAPRN ?
VGAPRN is a printer utility for printing ANY viewable VGA 320x200x256
color picture on an Epson or IBM-compatible dot matrix printer in
seven shades of gray that are "user-assignable" from the program.
VGAPRN converts your 256 color pictures to 7 gray shades, which you
can then adjust the assignment of colors to optimize the printed
image's appearance.
WHAT IS VGACAP ?
VGACAP is a terminate-stay-resident (TSR) utility that allows you to
capture the 256 color palette and screen in the 320x200x256 color mode
and save both the palette and screen in "Bloadable" formats. VGACAP's
main purpose is to capture and "Bsave" the pictures of commercial and
shareware viewing programs as well as painting/graphics and CAD
programs available now and in the future.
VGACAD (one of the first 256 color paint/CAD shareware programs
distributed in the Public domain) will load the captured pictures for
extensive image processing and editing.
REQUIREMENTS
You MUST have a VGA or MCGA adaptor (at least BIOS compatible) present
and an analog monitor to use VGACAP and VGAPRN. VGACAP uses less than
2K of your available memory ! VGAPRN needs about 256KB of memory to
run succesfully.
Note: When in DOS or using a picture viewer (e.g., VGAGIF) or
application which requires a keypress to continue, it is necessary to
hit any key or a specified key (e.g., spacebar or return) after
hitting the 'HOTKEY' before VGACAP saves the screen and palette.
COMPATIBLE PRINTERS
VGAPRN was designed to run on Epson and IBM compatible printers that
support 120 dpi (horizontally) and 216 dpi (vertically).
Epson (e.g., LQ,FX,GX,RX,JX, ...)
IBM (e.g., Graphics Printer, Proprinter, ...)
The following partial list of manufacturers have compatible "ESC"
codes to run VGAPRN; if your printer supports "ESC L" (sets double
density graphics) and "ESC J" (sets n/216 inch single line spacing)
VGAPRN will run on your system. Check your printer manual.
Canon (e.g., PW series)
Centronics
C.Itoh
NEC (e.g., Pinwriter, ...)
Okidata (e.g., 92/93, 192/193, 292/293, ...)
Panasonic (e.g., 1080i,1090i, ...)
Star (e.g., Gemini, Micronics SG series)
Tandy DMP
NOTE: YOU MUST DISABLE AUTO-LINEFEED; THIS SETTING IS NORMALLY
'OFF' (BY DEFAULT). IF YOUR PRINTER HAS THIS FEATURE 'ON',
YOU MUST SET THE DIP SWITCHES TO TURN IT 'OFF' OTHERWISE
YOUR PICTURE WILL BE PRINTED WITH 'SKIPPED' LINES.
HOW TO USE VGACAP
Simply run VGACAP before entering your painting/CAD or digitized
picture viewer. After loading, press <ALT-F10>, while viewing your
picture in any drawing/paint/CAD or viewing program. Your current
screen and palette will be saved in your default drive and directory
in the standard Bsave format for all BASIC programs.
The first time you run the program it will save your screen and
palette to SCREEN00.BLD and SCREEN00.PLT respectively. If there is an
existing SCREENxx.BLD or SCREENxx.PLT file, then it will increment to
the next higher number. This can be confusing if you keep the
captured files without renaming them since you can have unmatched
screens and palettes. You can use your favorite memory managers to
remove this TSR or reboot to release it from memory.
LOADING PICTURES INTO VGAPRN
Every captured picture or picture created with VGACAD will have two
files: the screen and palette. The screen should have the extension
.BLD and .PLT for the palette.
a) WITH captured screens and palettes using VGACAP
If your picture was captured with VGACAP, rename both files
with the same name with the corresponding extensions. For
example rename SCREEN00.BLD to MYPIC.BLD and SCREEN00.PLT to
MYPIC.PLT.
e.g. while in DOS type "rename SCREEN00.* MYPIC.*"
b) WITH created/edited screens palettes using VGACAD
In VGACAD you have the flexibility of using a single palette
for several pictures. If your screen was named "MYPIC.BLD"
and you used "GRAY64.PLT" for the screen, then rename or
copy "GRAY64.PLT" to "MYPIC.PLT" file.
e.g. while in DOS type "copy GRAY64.PLT MYPIC.PLT"
c) WITH BASIC Bsaved pictures using hardware palette
In BASIC, when you invoke SCREEN 13 the VGA card defaults to
a standard hardware palette. You can BSAVE you screens
using the following lines:
Screen 13: 'init MCGA 256 color mode
DEF SEG=&HA000: 'point data segment to
'screen buffer A0000H
BSAVE"MCPIC.BLD",0,64000: 'bsave the screen
DEF SEG: 'restore data segment
Copy and rename the included file "BASIC.plt" to match your
bsaved picture.
e.g. while in DOS type "copy BASIC.PLT MYPIC.PLT"
If you are directly making pictures from BASIC, I suggest
using VGACAP to save screen and palette changes instead of
being limited by the standard hardware palette. BASIC's
PALETTE USING does not support reading (much more a way to
bsave) palettes in a BIOS compatible format.
Now that you have the screen and palette type "VGAPRN MYPIC <return>".
After a few seconds of initialization your picture will appear and it
will be converted into 256 gray shades then to 7 gray shades. You
will see the following menu.
0 ───── 0 6
1 ────── 7 15
2 ────── 16 21
3 ────── 22 27
4 ─────── 28 35
5 ───── 36 42
6 ─────────── 43 63
VGAPRN converts all the 256 colors in your picture into 7 gray
dithered patterns indicated by the numbers 0 to 6 on the left column.
The total number of gray shades possible on the VGA card is 64; each
of the 7 bands (0-6) represent sections of the total 64 gray range
that will be assigned one of 7 dithered gray patterns. The numbers on
the right columns are the specific gray colors assigned to each of the
7 dithered gray patterns which your printer will simulate as a gray
shade.
By moving the <UP> and <DOWN> arrow keys one of the 7 bands will be
highlighted. The <LEFT> and <RIGHT> arrow keys will extend your
selected band to the left or right; extending your selected band to
the left decreases the bandwidth of the band preceding it while
extending the selected band to the right decreases the band proceeding
it. This method allows you to graphically see the distribution of the
64 gray scale to each of the 7 dithered patterns.
You will notice that the minimum bandwith is "1"; when a preceeding or
proceeding band is shortened to a width of "1" an error beep will
sound and adjustment will cease. To continue extending your selected
band beyond that point would require extending the preceding band to
allow more room for your selected band. For example, your have the
following gray scale assignments and would want to extend Band #5 to
cover more of the lower range.
0 ───── 0 6
1 ────── 7 15
2 ────── 16 21
3 ────── 22 27
4 ─ 28 28
5 ^ ─────────── 29 42
6 ─────────── 43 63
You would have to adjust Band #4 to extend over Band #3's range to
extend Band #5's rnage any further.
0 ───── 0 6
1 ────── 7 15
2 ────── 16 21
3 ─ 22 22
4 ─────── 23 28
5 ^ ^ ─────────── 29 42
6 ─────────── 43 63
Now Band #5 has more "room" to extend itself into Band #4's range.
Follow these same rules for extending in any direction for and band.
Pressing the <SpaceBar> will convert your picture and reflect your new
gray scale assignments. The picture you will view will closely
approximate what you will be actually printed. Press any key and you
will be returned to the menus.
If you are satisfied with the gray scale assignments, then hit
<return> and you will be presented with two options. The first option
is printer port selection; you have a choice of using Printer Port #1
(which is normally the default for most systems) or Printer Port #2
for systems that are using other parallel devices. The next option is
the number of passes. One pass will normally be sufficient; two
passes are required if you want to darken the resulting image or when
your printer ribbon has begun to fade. Press "S" to stop printing at
any time during the print-out.
Pressing <ESC> at the menu prompt will terminate the program and exit
to DOS.
OPTIMIZING YOUR IMAGE
In my experience, not many colors are assigned to Band #6 (which is
the {lightest dithering pattern); you will have to keep extending that
band over Band #5's range to "see it" (during preview). Sometimes you
may think you have distributed all 7 dithering patterns optimally,
only to find no occurence of Band #6 in your actual print-out.
Every single change to any Band's rnage results in drastic changes in
the converted picture. The only way to find the optimal image is to
keey experimenting. I suggest starting from Band #6 and moving your
way down to Band #0 in single increments.
REGISTRATION
To register your copy, send in the registration form and check for
$14.95 or $19.95 payable to
Dr. Marvin Gozum
2 Independence Place Apt. 303-2
6th & Locust Street
Philadelphia, PA 19106
For $14.95 you will be entitled to the latest update of VGACAD without
reminders which pop-up every 20 minutes AND the latest updates of
released utilities: VGACAP (included here), CGA2VGA (converts your
library of CGA pictures to VGA 256 color format), and BLD2GIF
(converts ANY viewable 320x200x256 VGA pic or VGACAD pic to
CompuServe's standard GIF file).
For $19.95 you will be entitled to the next TWO (2) updates of the
latest of everything; this means that from the date of receipt of your
registration we will send you the latest version of VGACAD and all the
related utilities developed and a premier copy of any new utility
developed as well as the next releases of all the aforementioned and
any new fonts (with the font editor) and Clipart files when available.
You can expect spectacular enhancements in VGACAD's updates. At
present it has sophisticated color/gray image processing functions,
auto/variable sizing/stretching/flipping, image colorization, Cut and
Paste, 29 brushes and other featurese. Future updates will include 3D
and 2D transformations, gradient fills and patterns, and more; all of
these routines are in "C" or assembly and work very fast.
In the pipeline is QBVGA an extensive library of QuickBASIC VGA 256
color graphics routines, VGASHW (a graphics presentation program to
showoff your captured pictures or your own paintings and screen
design, EGA2VGA (a TSR to convert any EGA 640x350x16 color pics to VGA
320x200x256 color pics), and VGA3DM (3D object/model editor for
including models in VGACAD). If you continue to support maverick
authors like us, we will continue to develop these products like
nothing ever seen in commercial packages - otherwise it will, as many
(sigh!) good "shareware" packages have to go commercial or simply die
from lack of support. Support us and we'll keep developing.