XML/SWF Gauge  1.6 | XML/SWF Charts | SlickBoard(New)

 < previousnext > 

 

image

 

<image url='string'
       x='float' 
       y='float'
       width='float' 
       height='float'
       rotation='float'
       alpha='int'
       retry='int'
       timeout='int'
       /> 
              


Description

image displays a JPEG image, or a flash SWF animation. JPEG images must be saved as standard JPEG (not progressive JPEG.) Image applications display this option when saving an image.

JPEG and SWF are the only file formats that flash can import programmatically into gauges. However, SWF animations that gauges display can include other file formats like GIF, and advanced features like scripting.

 

  • url: Relative or absolute URL of a JPEG image, or a flash SWF animation. This must be in the same subdomain as the "gauge.swf" file (flash security)

  • x: The horizontal position of the images's upper-left corner relative to the upper-left corner of the canvas (0, 0). The default is zero

  • y: The vertical position of the images's upper-left corner relative to the upper-left corner of the canvas (0, 0). The default is zero

  • width: The width to scale the image's width to. The default is the canvas' width

  • height: The height to scale the image's height to. The default is the canvas' height

  • rotation: The image's rotation around its upper-left point (x, y). This is a value between 0 and 360. The default is zero

  • alpha: The image's transparency value. Valid values are 0 (fully transparent) to 100 (fully opaque). The default is 100

  • retry: The number of times to retry loading the image before displaying a loading error message. The default is 0 (don't retry)

  • timeout: The number of seconds to wait before a loading try times out. The default is 30 seconds

 


Example


<gauge>

   <!-- draw a jpeg image -->	 
   <image url='/gauge/images/pattern.jpg'	
          x='50' 
          y='25'
          width='200' 
          height='150'
          /> 
       
   <!-- draw the same image with different attributes -->	 
   <image url='/gauge/images/pattern.jpg'
          x='300' 
          y='100'
          width='75' 
          height='50'
          rotation='20'
          alpha='50'
          /> 
          
   <!-- draw a SWF animation -->	 
   <image url='/gauge/images/count.swf'
          x='100' 
          y='125'
          width='100' 
          height='100'
          /> 

</gauge>

 

 

 < previousnext > 


Copyright © 2005-2013, maani.us