home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
MAC2GIF.ZIP
/
MAC2GIF.DOC
next >
Wrap
Text File
|
1988-09-18
|
13KB
|
332 lines
MAC2GIF v1.00 (c) 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 10-day trial
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 releases (or updates) of applications or utilities for EGA
or VGA.
You may freely distribute copies of this program in its UNMODIFIED
state (i.e., including all files listed in README.1st) 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 MAC2GIF ?
MAC2GIF is a viewer/colorizer/conversion utility for creating files
which follow CompuServe's GIF ("Graphics Interchange Format") which
allows the transmittal and porting of your pictures to other machines
inany graphics mode, as well as through communication software.
MAC2GIF will view and convert any .MAC (MacPaint or "readmac") file in
EGA, VGA or MCGA. All pictures are colorized (greys or EGA colors)
and view the entire picture with correct aspect ratios. No scrolling
is needed since the entire .MAC file is interpolated to fit the screen
in any of the selected EGA, VGA or MCGA modes.
VGA/MCGA users can Bsave 320x200x256 screen in the .BLD & .PLT format
for editing, garnishing, colorizing and image processing in VGACAD or
incorporation in their own BASIC or QuickBASIC programs.
MAC2GIF Copyright (c) 1988 Lawrence & Marvin Gozum
REQUIREMENTS
You MUST have an EGA or VGA or MCGA adaptor (at least BIOS compatible)
present. Floppy disk users MUST have COMMAND.com present in Drive A;
Hard disk users must have COMMAND.com in ther DOS PATH.
For the record, 512KB of free memory is required (although it uses
much less than that). Hard disk users must have 368,640 bytes of free
disk space. Dual floppy users must have 184,320 bytes of free disk
space in BOTH drives (A & B).
SPECIFYING INPUT AND OUTPUT FILES
After running the program, you will first be asked what disk
configuration you have [H]arddisk or [D]ual Floppies; the program
will then check for the right overlay files and diskspace.
You will be asked for if you want to view files and and set the path.
The selected path will be the default sub-directory that the program
will access for all your .MAC files; MacPaint pictures that do not
have the .MAC extension should be renamed to this convention.
PATHNAMES MUST END WITH THE BACKSLASH CHARACTER (e.g. "C:\MACPICS\").
Now input the filename (e.g., "NJANUD.mac"); if you skipped specifying
then the filename must include the path as well (e.g., "B:\NJANUD.mac"
or "C:\MACPICS\NJANUD.mac"). IF THE FILE DOES NOT EXIST, ABEEP WILL
SOUND AND YOUR INPUT WILL BE REJECTED.
Next input the GIF filename the picture will be saved to (e.g.,
"NJANUD.gif"); WITH HARDDISK USERS, CONVERTED FILES WILL BE SAVED TO
THE DEFAULT DRIVE/DIRECTORY; NO PATHNAMES MUST PRECEDE THE FILENAME.
FOR DUAL FLOPPY USERS CONVERTED FILES WILL BE SAVED IN DRIVE B.
IF THE SPECIFIED .GIF FILE EXISTS THEN A BEEP WILL SOUND AND YOUR
INPUT WILL BE REJECTED.
VGA/MCGA users:
You will be prompted for an optional .BLD & .PLT filename for
saving MCGA 320x200x256 screens. Use this option if you want to
convert pics for use in VGACAD or in BASIC applications.
VIEWING AND SAVING CONVERTED PICTURES
There are four viewing options, VGA cards can use any or all options:
[V]GA 288x360x5 greys
[X]VGA 384x480x5 greys
[M]CGA 192x200x13 greys
[E]GA 384x350x5 colors
MAC2GIF Copyright (c) 1988 Lawrence & Marvin Gozum
All modes will show the entire .MAC picture. Pcitures that were
viewed and saved on an IBM machine will have distorted aspect ratios.
Only original .MAC pictures will show correct aspect ratios (which are
about 95% of all pictures in the Public Domain).
After viewing any of the pictures press <RETURN> and your picture will
be saved to a .GIF file as specified. Press <ESC> to go back to the
main menu. You can view the pictures in ANY or ALL of the modes
before saving as long as your video card supports that mode. If your
video card does not support that mode an error beep will result and
return you to the main menu. Once saved, if you view the picture in
another mofde and save the picture, it will replace the file
previously saved; only one file is saved at a time.
The [M]CGA option offers the option to save in the .BLD & .PLT format
if you elected that option at the start; otherwise it will save as a
.GIF file. Only one of the two formats will be saved as specified
during the INPUT & OUTPUT FILE SPECIFICATION.
In [E]GA mode, you can change the palettes to 9 different color
combinations by simply pressing numbers 1 to 9 after the picture
appears; monochrome users can try different palettes to get the
maximum number of viewavble shades.
REMEMBER ONLY THE <ESC> WILL BRING YOU BACK TO THE MAIN MENU; ALL
OTHER KEYS WILL RESULT IN AN ERROR BEEP.
BLOADING CONVERTED SCREENS IN BASIC
The following lines will load one of the captured screens from
QuickBASIC 4.0; if you are using QuickBASIC 1.0, 2.0 or 3.0, I have
included VGAMODE.obj which you can include in your UserLib.exe through
BUILDLIB.exe.
VGAMODE is a BIOS compatible assembly routine which can call the more
exotic graphic modes of your compatible VGA card (e.g. 800x600x256);
check your user manual for the correct hex codes.
USAGE: Call VGAMODE(&H13) : 'MCGA 256 color mode
or Call VGAMODE(mode%): 'where mode is an integer that
'corresponds to the videomode
'after translating it from HEX
The following lines will perform just as well as the listing above.
Call VGAMODE(&H13): 'init MCGA 256 color mode
DEF SEG=&HA000: 'point data segment to
'screen buffer A0000H
Bload "MYPIC.BLD",0: 'load the screen
DEF SEG: 'restore data segment
MAC2GIF Copyright (c) 1988 Lawrence & Marvin Gozum
For QuickBASIC (any version from 1.0 to 4.0), I have included
WRITEPAL.obj, which is, also a VGA BIOS routines written in assembly,
that you can include in your UserLib.exe through BUILDLIB.exe (v3.0
and lower) or LINK (v4.0). WRITEPAL is also a BIOS compatible
assembly routine that writes to 256 palette registers. Although its
main purpose is to facilitate the overriding of the VGA or MCGA
standard palette, since it is an all-purpose BIOS routine it will
facilitate changing the palettes of more exotic screen modes such as
640x480x256 or 800x600x256. This function is similar to "PALETTE
USING" in QuickBASIC with the major advantage of following the BIOS
convention which MAC2GIF and VGACAD uses.
USAGE: Call WritePal (Dseg%,Offset%)
WHERE: Dseg% =result of VARSEG for array storage
Offset%=result of VARPTR for array storage
The following lines illustrate its use.
REM: Example Routine
DIM UserPal%(769) :' 256 colors x 3 registers=768
:' registers= red grn blu
Dseg%=VARSEG(UserPal(1)) :' get data segment
Offset%=VARPTR(UserPal(1)) :' get offset
DEF SEG=Dseg% :' override data segment
BLOAD "MYPIC.PLT",Offset% :' bload in correct offset
DEF SEG ;' restore data segment
Call WritePal (Dseg%,Offset%)
USING VGABLD
The "bloadable" format has several advantages. If you intend to use
your pictures primarily in IBM machines in VGA or MCGA mode then you
will notice that the pictures load INSTANTANEOUSLY ! Bloading a
screen is simply a memory dump into your display area; this is
particularly crucial for presentations.
In addition, keeping the screen and palette separate allows you to use
one palette for several pictures or for creating special effects. For
example, you can make a picture shift from a "day scene" to a "night
scene" by simply changing the palette; you can also create animation
effects.
You need not go through the tedium of writing your own program just to
view converted pictures. VGABLD will load a picture for viewing.
Captured screen and palette MUST have the .BLD and .PLT extensions
respectively for the same picture. The BASIC source code is included
and is ready for compilation.
MAC2GIF Copyright (c) 1988 Lawrence & Marvin Gozum
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
BONUS: Registered users of VGACAD v1.40 or VGA2EGA are registered
for MAC2GIF. Copy your REGISTER.OVL file into the directory
of MAC2GIF and it will operate as a registered version. IF
YOU HAVE NOT REGISTERED VGACAD v1.40 or VGA2EGA, DO SO NOW;
THIS OFFER IS VALID ONLY WITH VGACAD v1.40 or VGA2EGA v1.00.
For $19.95 you will be entitled to the latest update of MAC2GIF and
VGA2EGA (EGA users) or VGACAD (VGA users) as well as one copy or
upgrade of any EGA or VGA applications that we have or may release.
Among the utilities that support EGA and VGA to be released are:
VGAPRN v2.00 - prints 256 color GIFs to Epson and IBM compatibles
in 7 (hopefully 13) user-assignable grey shades.
VGAPUB - converts 256 color GIFs to B&W images of varying sizes
for desktop publishing/printing as .GIF, .PCX and other formats.
If you support maverick authors like us, we will continue to develop
innovative products like nothing seen commercially - otherwise they
will, as many (sigh!) good Shareware programs, become commercial or
simply die from lack of support.
───────────────────────────────────────────────────────
Graphics Interchange Format and GIF are trademarks (tm)
of CompuServe Inc. an H&R Block Company.
MAC2GIF Copyright (c) 1988 Lawrence & Marvin Gozum