Difference between revisions of "Canvas 3D - Image Tag"

From CDOT Wiki
Jump to: navigation, search
 
(Cube Tag Reference)
 
Line 1: Line 1:
= Cube Tag Reference =
+
= 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 11:01, 13 April 2007

Image Tag Reference

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

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

References

  • None.