Previous: Generating Images Next: ISL - KMZ Generation Table of contents Frames User guide
ITC-IDV Workshop for NGIC > ISL - Scripting with IDV

4.2 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="clipped_thumb.png" width="25%"/>
         </image>
    
         <!-- Make another image -->
         <image file="${islpath}/matted.png">
              <!-- add a logo overlay -->
              <overlay image="http://www.unidata.ucar.edu/software/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="http://www.unidata.ucar.edu/software/idv/logo.gif"
                       place="ul,10,10"
                       anchor="ul"/>
         </movie>
    </isl>
    
    image6.isl

 


Previous: Generating Images Next: ISL - KMZ Generation Table of contents Frames User guide
ITC-IDV Workshop for NGIC > ISL - Scripting with IDV