Class Index | File Index

Classes


Class twodee.ImageNode


Extends .
A node which draws an image.
Defined in: ImageNode.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructs a new image node.
Method Summary
Method Attributes Method Name and Description
 
Returns the image.
 
render(g, transform)
 
setImage(image)
Sets the image
 
setShowBounds(showBounds)
Enables or disables the display of node bounds.
Class Detail
twodee.ImageNode(image)
Constructs a new image node.
Parameters:
{HTMLImageElement|Image} image
Optional image. If not set then it must be set with the setImage() method.
Method Detail
{HTMLImageElement|Image} getImage()
Returns the image.
Returns:
{HTMLImageElement|Image} The image

render(g, transform)
Parameters:
{CanvasRenderingContext2D} g
The graphics context
{twodee.Matrix} transform
The transformation
See:
twodee.SceneNode#render

setImage(image)
Sets the image
Parameters:
{HTMLImageElement|Image} image
The image to set

setShowBounds(showBounds)
Enables or disables the display of node bounds. This is for debugging purposes.
Parameters:
{boolean} showBounds
True to show the bounds, false to hide them

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 29 2011 20:19:03 GMT+0100 (CET)