svgaddimage
| svgaddimage | 
  Purpose
 
  Synopsis
 
procedure svgaddimage(gid: string, fid: text, x: real, y: real, w: real, h: real)
 procedure svgaddimage(fid: text, x: real, y: real, w: real, h: real)
 
  Arguments
 
| 
     gid 
     | 
     Object group ID.
     | 
| 
     fid 
     | 
     Name for the file used within the SVG graph.
     | 
| 
     x 
     | 
     The x coordinate of the lower left corner.
     | 
| 
     y 
     | 
     The y coordinate of the lower left corner.
     | 
| 
     w 
     | 
     The width of the image.
     | 
| 
     h 
     | 
     The height of the image.
     | 
  Example
 
  The following code adds an image file to the current graph and displays it 3 times at different positions (3 squares forming a row).
 
svgaddfile("./someimage.png", "myimg.png")
forall(i in 1..3)
  svgaddimage("myimg.png", 100*i, 100, 100, 100)
  Further information
 
 1. Any external file to be displayed within a graph needs to be associated with the graph via a call to
 svgaddfile.
 
 2. If no group ID is specified, the image is added to the last group that has been created.
 
  Related topics
 
 
