home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / la_kvec.zip / vect2art.cmd < prev    next >
OS/2 REXX Batch file  |  1996-12-17  |  704b  |  25 lines

  1. /*
  2. ** Vectorize an image in BMP, TIF or GIF format to ART-Format
  3. ** WORKLab, 17.12.96
  4. */
  5. parse upper arg path options
  6. if path = "" then do
  7. say "invalid file name"
  8. say "syntax: vec2art <filename.typ> [<options>]"
  9. say ""
  10. say "        ,where filename type is one of (BMP, TIF, GIF)"
  11. say "        and options one of(L)ine (vectorizes using lines)," 
  12. say "        or (B)ezier (vectorizes using Bezier curves)"
  13. say "        default is Line."
  14. exit
  15. end
  16.  
  17. name = filespec("name", path)
  18. base = left(name, lastpos('.', name))
  19. if left(options,1)== 'B' then 
  20.       options="-BEZIER" 
  21. else  options = ""
  22. say "--> converting" path "to" base||"ART"
  23. "kvec" path base||"ART" "-FOR ART" options
  24. exit
  25.