Difference between revisions of "Canvas 3D - Image Tag"
(→Cube Tag Reference) |
|||
Line 1: | Line 1: | ||
− | = | + | = Image Tag Reference = |
[[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]] | [[XML_3D_-_BTS530/630 Project|Back To XML 3D Main Page]] |
Latest revision as of 10:01, 13 April 2007
Image Tag Reference
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
<canvas> <image src="StuffImg.jpg" position="180, 180" /> </canvas>
References
- None.