home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
msdos
/
jpeg
/
iv1_02
/
demo.mac
< prev
next >
Wrap
Text File
|
1993-12-26
|
2KB
|
63 lines
#
# macro to demonstrate imgTECH/IP
# to run type: iv demo
#
set backup
set gamma 1
echo "Welcome to imgTECH/IV! Please press any key after every line is shown"
echo "Pressing ESC at any point will end this macro"
echo "IV can view and manipulate: GIF/TIFF/BMP/PCX/JPEG/IV images"
echo "Ex: To open a BMP press ALT+F/Open/BMP then select the desired image"
echo "IV will now open neuron.i (image in native IV format -- ends in .i)"
open neuron.i
echo "Once an image is open it may be rotated or scaled or mirrored..."
rotate 90
echo "This is rotated by 90 degrees"
mirror
echo "This is a mirror image"
scale 2 1 2 1
echo "This is scaled by 2 in both X and Y directions"
echo "The other images are still in memory, but not shown"
show neuron
show neuron.01
echo "Specific images can be SHOWn or ERASEd using the appropriate menus"
echo "Images may be CLOSEd (removed from memory) with ALT+F/Close"
close neuron.01 neuron.02 neuron.03
echo "This is the only image remaining"
greyscale
echo "This is a greyscale version of the image"
close all
echo "All images have been closed"
echo "IV will now open seashore.jpg -- It may be larger than the screen"
open seashore.jpg
echo "IV will now switch to full screen mode -- press any key to return"
fullscreen
getkey
unfullscreen
echo "Cut a piece out of the seashore"
cut seashore 96 204 317 359
echo "We can zoom in on the seagull"
zoom seashore.01 74 98 145 151
echo "Now cut the seagull out of the original image"
cut seashore.01 79 105 145 150
echo "We can paste the seagull back into the original image"
paste seashore.03 seashore.01 135 105 c
echo "Close seashore.02 and seashore.03
close seashore.02 seashore.03
echo "We can make a stack out of seashore.01 and seashore.04"
echo "These images are not stacks (files) yet, they are stored only in memory"
echo "Therefore we save seashore.01 as stack.i and seashore.04 as tmp.i"
save as seashore.01 stack.i
save as seashore.04 tmp.i
echo "Now insert tmp.i into stack.i at position #2"
insert stack tmp 2
echo "stack.01 contains stack.i and tmp.i -- image 1/2 is displayed"
goto 2
echo "image 2/2 is displayed"
goto 1
echo "Done."
close all
run del stack.i
run del tmp.i
end