home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / graphics / gif-util.zip / TESTGIF.BAT < prev   
DOS Batch File  |  1989-08-01  |  2KB  |  72 lines

  1. @echo off
  2. rem
  3. rem Tests for the gif_lib utilities.
  4. rem Usage:
  5. rem    testgif [gif_dir] [display_prgm]
  6. rem
  7. rem   This test assumes the gif_lib utilities are available from one of the
  8. rem path directorys, and that DIR is set (directly or through command line)
  9. rem to the directory holf these gif files:
  10. rem 1. SOLID2.GIF
  11. rem 2. CHERYL.GIF
  12. rem 3. PORSCHE.GIF
  13. rem   In addition, set DISPLAY ( directly or through command line) to the
  14. rem program to display gif files in our system.
  15. rem   As this batch file intensively uses pipes which on msdos are saved as
  16. rem files on CURRENT disk, it is going to be a good idea to execute this batch
  17. rem from a ram disk.
  18.  
  19. set GIF_DIR=d:\gif\pic
  20. if not x%1 == x set GIF_DIR = %1
  21.  
  22. set GIF_DISPLAY=gif2herc
  23. if not x%2 == x set GIF_DISPLAY = %2
  24.  
  25. @echo on
  26.  
  27. gifbg -d tl -s 320 200 -c 255 255 255 -l 64 > bg1.gif
  28. gifcomb %GIF_DIR%porsche.gif bg1.gif | %GIF_DISPLAY%
  29.  
  30. gifhisto -t %GIF_DIR%cheryl.gif | sort/r | more
  31. gifhisto -b -s 200 512 %GIF_DIR%cheryl.gif | gifflip -l | %GIF_DISPLAY%
  32.  
  33. gifflip -r %GIF_DIR%solid2.gif | gifrsize | %GIF_DISPLAY%
  34.  
  35. gifinter %GIF_DIR%cheryl.gif | gifflip -x | %GIF_DISPLAY%
  36.  
  37. gifbg -d "TL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i   0   0 > b1.gif
  38. gifbg -d "BL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i   0 175 > b2.gif
  39. gifbg -d "TR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320   0 > b3.gif
  40. gifbg -d "BR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320 175 > b4.gif
  41. gifasm b1.gif b2.gif b3.gif b4.gif > backgrnd.gif
  42. %GIF_DISPLAY% -m 2 backgrnd.gif
  43.  
  44. copy %GIF_DIR%solid2.gif s1.gif
  45. gifrsize s1.gif > s2.gif
  46. gifrsize s2.gif > s3.gif
  47. gifrsize s3.gif > s4.gif
  48. gifpos -i 360 0 s2.gif | gifinto s2.gif
  49. gifpos -i 540 0 s3.gif | gifinto s3.gif
  50. gifpos -i 630 0 s4.gif | gifinto s4.gif
  51. gifasm s1.gif s2.gif s3.gif s4.gif > sall.gif
  52. giftext sall.gif
  53. %GIF_DISPLAY% sall.gif
  54. del s?.gif
  55.  
  56. gifpos -s 720 348 -i 400 148 %GIF_DIR%porsche.gif | %GIF_DISPLAY%
  57.  
  58. gifrsize -s 3 %GIF_DIR%solid2.gif  | gifrsize -u | %GIF_DISPLAY%
  59.  
  60. gifinter %GIF_DIR%cheryl.gif | gifrsize | %GIF_DISPLAY% -z 2
  61.  
  62. gifclip -i 1 1 492 345 %GIF_DIR%solid2.gif | gifpos -s 492 345 | %GIF_DISPLAY%
  63.  
  64. @echo off
  65.  
  66. rem Remove these variables from current shell
  67. Exit:
  68.  
  69. set GIF_DIR=
  70. set GIF_DISPLAY=
  71. 
  72.