7. Images

7.1 The <image> tag

Another basic component of X2D are <image> elements. An <image> tag inserts an image, specified by the url attribute, into the X2D document. In the following example, the image "universe.jpg" is inserted into the X2D document. Since no positional attributes are given, it will default to the origin as its location. Dimensions will default to the original width and height of the picture.

<x2d>
  <image url="http://www.someurl.com/universe.jpg"/>
</x2d>