Unidata IDV Workshop for version 5.7 > Advanced Topics > Scripting with IDV
4.3.3 Manipulating Images
The ISL supports a variety of image manipulations.
- We can manipulate the image in different ways:
<isl debug="true" offscreen="false">
<bundle file="${islpath}/isl.xidv"/>
<pause/>
<image file="${islpath}/clipped.png">
<clip north="60" south="20" east="-60" west="-140"/>
<resize width="400"/>
<thumbnail file="${islpath}/clipped_thumb.png" width="25%"/>
</image>
<image file="${islpath}/matted.png">
<overlay image="http://www.unidata.ucar.edu/software/idv/logo.gif"
place="LL,10,-10"
anchor="LL"/>
<matte background="red" bottom="100" top="100"/>
<overlay text="Workshop Example" place="LM,0,-10" anchor="LM" color="blue" fontsize="24"/>
</image>
</isl>
image5.isl
- Note: everything we can do with the image tag we can also do with the movie tag:
<isl debug="true" offscreen="false">
<bundle file="${islpath}/isl.xidv"/>
<pause/>
<movie file="${islpath}/overlay.mov">
<overlay image="http://www.unidata.ucar.edu/software/idv/logo.gif"
place="ul,10,10"
anchor="ul"/>
</movie>
</isl>
image6.isl
Unidata IDV Workshop for version 5.7 > Advanced Topics > Scripting with IDV