Previous: More on Generating Images Next: ISL Exercises Table of contents Frames User guide
Unidata IDV Workshop for version 6.2u2 > Advanced Topics > Scripting with IDV

4.3.3 Manipulating Images
The ISL supports a variety of image manipulations.
  1. We can manipulate the image in different ways:
    <isl debug="true" offscreen="false">
         <bundle file="${islpath}/isl.xidv"/>
         <pause/>
    
         <!-- Make an image -->
         <image file="${islpath}/clipped.png">
              <!-- Clip it at the lat/lon box -->
              <clip north="60" south="20" east="-60" west="-140"/>
    
              <!-- resize it -->
              <resize width="400"/>
    
              <!-- Make a thumbnail -->
              <thumbnail file="${islpath}/clipped_thumb.png" width="25%"/>
         </image>
    
         <!-- Make another image -->
         <image file="${islpath}/matted.png">
              <!-- add a logo overlay -->
              <overlay image="https://resources.unidata.ucar.edu/idv/logo.gif"
                       place="LL,10,-10"
                       anchor="LL"/>
    
              <!-- Matte the image -->
              <matte background="red" bottom="100" top="100"/>
    
              <!-- Overlay some text -->
              <overlay text="Workshop Example" place="LM,0,-10" anchor="LM" color="blue" fontsize="24"/>
    
         </image>
    </isl>
    
    image5.isl
  2. 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">
              <!-- add a logo overlay in the upper left -->
              <overlay image="https://resources.unidata.ucar.edu/idv/logo.gif"
                       place="ul,10,10"
                       anchor="ul"/>
         </movie>
    </isl>
    
    image6.isl

 


Previous: More on Generating Images Next: ISL Exercises Table of contents Frames User guide
Unidata IDV Workshop for version 6.2u2 > Advanced Topics > Scripting with IDV