Canvas 3D - Image Tag

From CDOT Wiki
Revision as of 10:01, 13 April 2007 by RealMarkP (talk | contribs) (Cube Tag Reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.