Changes

Jump to: navigation, search

Canvas 3D - Image Tag

997 bytes added, 17:19, 10 February 2007
no edit summary
= Cube Tag Reference =

[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]]

== Introduction ==

Displaying a Image is one of the basic functions within canvas. The Image Tag is similar to its HTML counterpart, the Img Tag. In addition to displaying the image, its various attributes can be manipulated to add more functionality, such as modifying position.

== Tag Attributes ==

* position
** '''Usage:''' <image position="35, 53" />.
** The ''position'' attribute is optional. If omitted, the position defaults to the Origin location at {0, 0}.
** The position attribute holds a set of two numbers separated by commas that are associated with the distance away from the Origin Point of (0, 0).
* src
** '''Usage:''' <image src="mypic.jpg" />.
** The ''width'' attribute defines the location of the image that will be drawn.
** ''This attribute cannot be omitted.''

== Syntax ==

<pre>
<canvas>
<image src="StuffImg.jpg" position="180, 180" />
</canvas>
</pre>

== References ==

* None.
1
edit

Navigation menu