home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / convrtrs / iv1_02 / demo.mac < prev    next >
Text File  |  1993-12-26  |  2KB  |  63 lines

  1. # macro to demonstrate imgTECH/IP
  2. # to run type: iv demo
  3. #
  4. set backup
  5. set gamma 1
  6. echo "Welcome to imgTECH/IV!  Please press any key after every line is shown"
  7. echo "Pressing ESC at any point will end this macro"
  8. echo "IV can view and manipulate: GIF/TIFF/BMP/PCX/JPEG/IV images"
  9. echo "Ex: To open a BMP press ALT+F/Open/BMP then select the desired image"
  10. echo "IV will now open neuron.i (image in native IV format -- ends in .i)"
  11. open neuron.i
  12. echo "Once an image is open it may be rotated or scaled or mirrored..."
  13. rotate 90
  14. echo "This is rotated by 90 degrees"
  15. mirror
  16. echo "This is a mirror image"
  17. scale 2 1 2 1
  18. echo "This is scaled by 2 in both X and Y directions"
  19. echo "The other images are still in memory, but not shown"
  20. show neuron
  21. show neuron.01
  22. echo "Specific images can be SHOWn or ERASEd using the appropriate menus"
  23. echo "Images may be CLOSEd (removed from memory) with ALT+F/Close"
  24. close neuron.01 neuron.02 neuron.03
  25. echo "This is the only image remaining"
  26. greyscale
  27. echo "This is a greyscale version of the image"
  28. close all
  29. echo "All images have been closed"
  30. echo "IV will now open seashore.jpg -- It may be larger than the screen"
  31. open seashore.jpg
  32. echo "IV will now switch to full screen mode -- press any key to return"
  33. fullscreen
  34. getkey
  35. unfullscreen
  36. echo "Cut a piece out of the seashore"
  37. cut seashore 96 204 317 359
  38. echo "We can zoom in on the seagull"
  39. zoom seashore.01 74 98 145 151
  40. echo "Now cut the seagull out of the original image"
  41. cut seashore.01 79 105 145 150
  42. echo "We can paste the seagull back into the original image"
  43. paste seashore.03 seashore.01 135 105 c
  44. echo "Close seashore.02 and seashore.03
  45. close seashore.02 seashore.03
  46. echo "We can make a stack out of seashore.01 and seashore.04"
  47. echo "These images are not stacks (files) yet, they are stored only in memory"
  48. echo "Therefore we save seashore.01 as stack.i and seashore.04 as tmp.i"
  49. save as seashore.01 stack.i
  50. save as seashore.04 tmp.i
  51. echo "Now insert tmp.i into stack.i at position #2"
  52. insert stack tmp 2
  53. echo "stack.01 contains stack.i and tmp.i -- image 1/2 is displayed"
  54. goto 2
  55. echo "image 2/2 is displayed"
  56. goto 1
  57. echo "Done."
  58. close all
  59. run del stack.i
  60. run del tmp.i
  61. end
  62.