home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 2: Collection B / 17Bit_Collection_B.iso / files / 1221.dms / in.adf / PC / VGIF.DOC < prev    next >
Encoding:
Text File  |  1993-03-10  |  16.8 KB  |  306 lines

  1. VGIF.EXE ver 3.4 by Bob Montgomery [CIS 73357,3140]           6-23-88
  2. See revision history for new items. Now supports standard VGA and Orchid
  3. extended VGA. An attempt at supporting other VGA cards is made; don't know
  4. if it works or not-would appreciate feedback.
  5.  
  6. This is a GIF file viewer for VGA/EGA with the following features:
  7.   *  Now allows adjustment of picture color and contrast.
  8.   *  Now allows you to spec a mode on the command line.
  9.   *  Saves to GIF and PC Paint/Pictor formats in VGA or EGA.
  10.   *  Now handles up to 500 files.
  11.   *  Determines equipment and uses VGA where possible.
  12.   *  Very fast GIF decoding.
  13.   *  Menu driven for selecting file(s) to view; returns with cursor at last
  14.           position.
  15.   *  Shows specified files like a slide show for EGA.
  16.   *  /R option allows an application program to show a file and regain control.
  17.   *  Creates PC Paint, ZSoft, Dr. Halo, or EGA PAint file from current pic
  18.   *  Gives much better color rendition.
  19.   *  Now allows creation of full size PC Paint, ZSoft, Dr. Halo (.CUT and .PIC)
  20.      and EGA Paint files in EGA mode.
  21.  
  22. Format: vgif [path\filespec] [path\][filename[.ext]] [/e] [/r] [/mode,number].
  23.      The default path is the current directory, and the default extension is
  24.      GIF. The /r option returns control to a calling program; see 5 below. The
  25.      /e option forces EGA mode if you have VGA, so all file conversions work.
  26.      If a filename is given, the single file will be shown. If path is a
  27.      directory, a menu of all files meeting filespec will appear. The mode
  28.      command is detailed in 6 below.
  29.  
  30. The commands are:
  31. 1. vgif [path\]filename[.ext] shows the file specified. The default path is the
  32.      current directory, and the default extension is GIF.
  33.  
  34. 2. vgif [.ext] to get a menu of up to 500 files in current dir with extension
  35.      ext. The default extension is GIF. This is handy if you have some pictures
  36.      that you don't want to come up in the normal menu; ie, adult and nude pics
  37.      can be renamed to ADL extension.
  38.  
  39. 3. vgif [path\][filespec] to get a menu of all files in the specified path
  40.      meeting filespec (may contain wildcards but not period). The default path
  41.      is the current directory, and the default filespec is *.GIF; just entering
  42.      'vgif' will give a menu of all GIF files in the current directory. Shows
  43.      whether VGA or EGA and modes supported in upper left corner.
  44.  
  45. 4. vgif @[path\]filename[.ext]  to do a slide show from commands in filename. The
  46.      default path is the current directory, and the default extension is SLD.
  47.      The commands are placed on seperate lines, and consist of either a filename
  48.      (GIF extension assumed), or a delay (viewing time) spec of the form  d n
  49.      where n is the desired viewing time in seconds. The default viewing time is
  50.      5 seconds if no delay spec is given. Press any key to end the slide show.
  51.      Pictures that are 320 or less pixels wide are displayed double size.
  52.  
  53. 5. vgif /r shows the file and then returns to DOS (or a calling application
  54.      program) with the picture still on the screen in EGA/VGA. It is not
  55.      necessary to change video mode between viewing each file, but it is up to
  56.      the calling program to reset text mode (mode 3) after all viewing is done.
  57.  
  58. 5. vgif /e forces and EGA display with VGA, so all file conversions, slide mode,
  59.      and palette revisions work; forces operation like VGIF ver 2.0.
  60.  
  61. 6. vgif /mode,ax[,bx] tells VGIF to use the ax and optional bx values to set
  62.      the specified VGA/EGA video mode. Allowable modes and default values are:
  63.  
  64.                                         Default values    Modes for Other Cards
  65.           Mode      Size & colors       ax       bx    AST/Paradise  Vega (bl)
  66.           ---------------------------------------------------------------------
  67.           vga200;   VGA 320x200x256     13h       0        13h       13h
  68.           vga350;   VGA 640x350x256     2Dh       0        -         -
  69.           vga400;   VGA 640x400x256     5Eh       0        5Eh       66hø
  70.           vga480;   VGA 640x480x256     2Eh       0        5Fh       67hø
  71.           vga540;   VGA 720x540x256     6F05h     68h      -         68hø
  72.           vga600;   VGA 800x600x256     30h       0        -         69hø
  73.           ega350;   EGA 640x350x16      10h       0        -         10h
  74.           ega480;   EGA 640x480x16      12h       0        12h       12h
  75.           ega600;   EGA 800x600x16      29h       0        58h       62hø
  76.           ega720;   EGA 960x720x16      36h       0        -
  77.           ega768;   EGA 1024x768x16     37h       0        -         65hø
  78.      ø - For Vega Extended boards, set ax=6F05h and mode number in bl.
  79.  
  80.      You may enter any number of these mode specs on the command line.
  81.      For example, if you have a Paradise VGA PRO board and want to use
  82.      640x480x256 (which is Paradise mode 5Eh) you would enter /vga480,0x5e
  83.      on the command line. This will replace the default 2Eh value with 5Eh.
  84.      You can enter the mode in decimal, or hex if you use the 0x prefix.
  85.      To set the Vega V7VGA, enter /vga480,0x6f05,0x67
  86.      I am not sure this will work on all boards, and would like feedback on
  87.      problems.
  88.  
  89. 7. vgif ?  gives a help screen.
  90.  
  91. Commands in menu mode: * => EGA only
  92. 1.   The up, down, right, and left arrow keys move the cursor around the menu
  93.      of files. PgDn/PgUp goto next/previous page. Pressing a key goes to next
  94.      file starting with this character.
  95. 2.   Pressing the spacebar marks a file for viewing or slides, and moves to the 
  96.      next file; it will also unmark a previously marked file.
  97. 3.   Pressing enter will display the marked files in the order they were marked.
  98.      If no files were marked, pressing enter displays the file at the cursor.
  99. 4.   Pressing F3 will display the file size and colors on the next to last line.
  100. 5.   Pressing F1 will bring up the help screen; any key will return to the menu.
  101. 6. * Pressing F2 will do a slide show of marked files until a key is pressed;
  102.      doesn't work yet for VGA.
  103. 7.   Pressing ESCape ends the program and returns to DOS.
  104. 8.   Pressing Ctrl Break (or Ctrl C) will get you directly to DOS.
  105. All other keys are ignored. If errors are encountered, an error message appears
  106. on the next to last line, and disappears when the cursor is moved. 
  107. The menu title is the search spec.
  108.  
  109. Commands while viewing a file (except in slide mode):
  110. 1.   The up/down arrow keys will scroll the picture if longer than the screen.
  111.      The PgUp and PgDn keys will scroll by 10 lines.
  112. 2.   If pic is <= 1/2 the screen width, pressing 2 will give a double size image
  113.      (which may be scrollable) and pressing 1 will give the normal size again.
  114.      For VGA, the picture will be chaged only in the horizontal direction; this
  115.      will unsquash some 320x400 pics so the aspect ratio is correct.
  116. 3.   Pressing + will increase the resolution for VGA (320x200 to 640x480, etc).
  117. 4.   Pressing - will decrease the resolution for VGA; useful if 800x600 rolls.
  118.  
  119. Presently, the following commands with an * work only with EGA (or VGA with the
  120. /e option) at this time. Some will be implemented in later versions. All the
  121. conversion options check if the default filename is present, and promt for a
  122. new name if it is. They all now let you know what is happening while the
  123. conversion prodceeds. If you screw up at the new filename prompt, hit Ctrl C
  124. to escape immediately to DOS; this will usually preserve a file you don't want
  125. to write over. The safest bet is to view files on floppy, while running VGIF
  126. from the hard disk. The new file is saved to the default drive, which is the
  127. directory you run VGIF from.
  128. 5. * Pressing Z will create a ZSoft (PC Paintbrush) file with the same filename
  129.      and extension PCX. The file will be a 640x350 paint file of what is
  130.      currently on the screen.
  131. 6.   Pressing P will create a PC Paint or Pictor file with the same size as the
  132.      current screen. The default extension is .PIC, and for EGA it prompts for
  133.      a PC Paint or Pictor file.
  134. 6.   Pressing G or I will create a GIF file on the default drive, and promt for
  135.      a new filename-the default extension is GIF; G is for non-interlaced, and
  136.      I is for interlaced files. The GIF file will be the same size as the
  137.      current image.
  138. 7. * Pressing R will create a RIX (EGA Paint) file with the same filename and
  139.      extension SCR (or SCP if a long pic and L pressed first).
  140. 8. * Pressing H will create a Dr. Halo pic file with the same filename and
  141.      extension PIC. The file will be a 640x350 paint file of what is currently
  142.      on the screen. A palette file will be created.
  143. 9. * Pressing C will create a Dr. Halo cut file with the same filename and
  144.      extension CUT. The pic will be the same size as the GIF file is currently
  145.      on the screen. A palette file will be created.
  146. 10.  Pressing enter will return to menu or DOS, or show next file for marked
  147.      menu mode.
  148. 11.  Pressing ESCape will end the display and return to the menu.
  149. 12.* Pressing L before pressing Z, P, R, C or H will save the picture to that
  150.      file type from the top of the current screen to the end of the
  151.      picture. Thus, if viewing a 640x480 pic, and you press LP, you will
  152.      create a PC Paint pic file that is a 640x480 image. If you had
  153.      scrolled up 10 lines, it would create a 640x470 image, etc.  Pressing
  154.      S will cancel the L command. For Dr. Halo .PIC files, the L creates a
  155.      640x480 file if the GIF file was between 351 and 480 rows.
  156. 13.  The following keys control the picture tone as follows:
  157.      F1   Decrease red content of picture.
  158.      F2   Increase red content of picture.
  159.      F3   Decrease green content of picture.
  160.      F4   Increase green content of picture.
  161.      F5   Decrease blue content of picture.
  162.      F6   Increase blue content of picture.
  163.      F7   Decrease contrast of picture (VGA only).
  164.      F8   Increase contrast of picture (VGA only).
  165.      F9   Decrease brightness of picture (VGA only).
  166.      F10  Increase brightness of picture (VGA only).
  167.  Alt-F10  Restore original palette after you thoroughly mess up the colors.
  168.      V    Reverses the current palette (EGA only); interesting effect especially
  169.           for black & white images.
  170.  
  171.      After a little experimenting, a 'washed out' VGA picture can be greatly
  172.      improved by using F1-F10 , and you can always start over by using Alt-F10.
  173.      To retain a black background in a VGA picture, the brightness should be
  174.      decreased when the contrast is decresed. If you have really improved the
  175.      picture, you can then save it to GIF by pressing G of I.
  176.  
  177. All other keys are ignored. Pressing Ctrl Break (or Ctrl C) will go to DOS.
  178. ----------------------------------------------------------------------------
  179. SHAREWARE
  180.            
  181. VGIF is user supported software.  VGIF for the IBM  PC is made available for a
  182. free ten day trial period.  If you find this program useful,  you may license
  183. the  program for non-commercial use on one machine by sending $10.00 to:
  184.  
  185.      Bob Montgomery
  186.      123 Parsons Road
  187.      Longwood, Fl 32779
  188.  
  189. VGIF may be licensed for commercial use on up to 10 computers at a single site
  190. or set of contiguous sites for $50.00. A commercial site is defined as a
  191. business or individual seeking to make a profit by selling VGIF or incorporating
  192. this program in another program.
  193.  
  194. Clubs, schools,  universities and other organizations may license VGIF for
  195. $30.00 per 6 copies.
  196.  
  197. All other rights are reserved.
  198.  
  199. VGIF may not be changed or modified in any way  except by the author.  VCUT may
  200. be freely distributed for the ten day trial period as long as it remains in its
  201. complete form.  Regardless of how the  copy is  obtained, it is requested that
  202. all users comply with the licensing agreement.
  203.  
  204. All licensing registrations will  be promptly  acknowledged.  All licensees
  205. will  receive prompt  notification of product revisions and will be able to
  206. purchase updates at a nominal fee.
  207.  
  208. All  warranties  are  disclaimed,  including  damage  to hardware and/or
  209. software from use of this product.
  210.  
  211. Any suggestions or comments can be mailed directly to me, or left on
  212. the following BBS's:
  213. Compuserve
  214. Tsunami BBS, Half Moon Bay, Calif. (415) 726-2726
  215. PC Rockland, S. Nyack, NJ (914) 353-2176 [Freeboard] 300+ Meg Online
  216. -------------------------------------------------------------------------
  217. Revision history:
  218. ver 1.1   1-13-88
  219.           Added test for EGA adapter.
  220.           Fixed menu colors.
  221.           Allow ESCape from marked file viewing.
  222.           Added Ctrl Break (or Ctrl C) exit to DOS anywhere.
  223.           Added 'disk full' notification when creating picture file.
  224.           Added critical error handler for 'drive not ready' errors.
  225. ver 1.2   1-15-88
  226.           Changed name to vgif.
  227.           Slide mode now ignore the end of file mark in slide file, and any key
  228.                will now end slide mode.
  229.           Added slides to menu mode if S pressed-shows marked files as slides
  230.                until a key is pressed.
  231. ver 1.3   1-21-88
  232.           Added better error checking to GIF file decoding. Notifies if bad GIF
  233.                file.
  234.           Fixed error reporting bug in single file mode.
  235. ver 1.4   2-9-88
  236.           Added instantaneous screen update in slide mode from menu or command
  237.                (sld) file.
  238.           Added the /r option which allows an application program to call VGIF 
  239.                to view a file and then regain control.
  240. ver 1.5   3-2-88
  241.           Added Page Up and Page Down keys to scroll by 10 lines at a time.
  242.           Added a max pic height of 819 lines so EGA buffer would not overflow.
  243.           Greatly improved color reproduction for 'problem' pictures (such as
  244.               FROG, ARCHIT, PUFFIN, VEGTABLE, etc). These pictures typically
  245.               have more than 16 colors. Selected colors on basis of frequency
  246.               of use where possible.
  247.           Fixed following bugs:
  248.           1.  Line buffer would overflow into other variables if pic width
  249.               was > 640 pixels, causing strange results.
  250.           2.  Didn't recognize the end of image marker correctly. This would
  251.               cause the palette to change when the image was done.
  252. ver 1.6   3-11-88
  253.           Fixed a bug in handling multiple images. First noticed when viewing
  254.                WHIMMI.GIF.
  255.           Use same palette for multiple images, and get best color match.
  256.           Added L and S commands while viewing a picture. These allow you to
  257.                create full size paint program files.
  258.  
  259. ver 2.0   3-26-88
  260.           Added the ability to view long GIF files ( > 819 lines) without
  261.                wrapping the display.
  262.           Added the C and H (Dr. Halo) file creation option while viewing.
  263.           Added the L and S prefixes to paint program file creation commands
  264.                while viewing to save long pic files.
  265.           Added the Info and Help commands in menu mode.
  266.           Deleted the # requirement to specify a directory from the command
  267.                line. The program now looks for a directory which meets the
  268.                spec on the command line. If none is found, it assumes the spec
  269.                is for a single file.
  270.           Added F1 - F10, and V palette control keys while viewing a file.
  271.  
  272. ver 3.0   5-2-88
  273.           Added VGA capability, and support for Tseng extended VGA modes
  274.                (640x480x256 and 800x600x256).
  275.           Determines and displays available modes for your system.
  276.  
  277. ver 3.1   5-11-88
  278.           Fixed a bug in dir/file spec from command line. Now accepts
  279.                vgif d:\dir\*.gif or vgif d:*.gif, although the [\]*.gif is not
  280.                required, since this is the default filespec.
  281.           Fixed a bug in forced EGA when doing slides, where an interlaced pic
  282.                displayed at double size would have a 'venetian blind' effect.
  283.           Changed so pics larger than 320x200 are shown in 640x480 VGA; can get
  284.                800x600 by pressing + key.
  285.           Note that EGA mode on the Orchid VGA card appears squashed
  286.                vertically. This is normal, and cannot be corrected without
  287.                reprograming the parameters for mode 16, which would change
  288.                the vertical retrace frequeny, and probably cause your monitor
  289.                to roll.
  290.  
  291. ver 3.2   5-26-88
  292.           Added 500 file menu, and assy language text screen updating; now
  293.                super fast.
  294.           Fixed a bug which caused the Vega VGA card to hang up.
  295.  
  296. ver 3.3   6-9-88
  297.           Added user spec of video mode for non-Orchid VGA boards.
  298.           Added GIF and Pictor save of current screen for VGA/EGA pics.
  299.           Added prompts to screen for conversion to other formats.
  300.           Removed conversion starting at first visible row-now does whole pic.
  301.  
  302. ver 3.4   6-23-88
  303.           Fixed a bug in the GIF save routine.
  304.           Added color, contrast, and brightness adjustment in VGA.
  305.           Fixed a bug in menu mode for marked files.
  306.