search

goog.graphics.CanvasImageElement

Provided By
Extends
All Implemented Interfaces

Thin wrapper for canvas image elements. This is an implementation of the goog.graphics.ImageElement interface. You should not construct objects from this constructor. The graphics will return the object for you.

new CanvasImageElement( element, graphics, x, y, w, h, src )

Parameters
element(Element|null)

The DOM element to wrap.

graphics(goog.graphics.CanvasGraphics|null)

The graphics creating this element.

xnumber

X coordinate (left).

ynumber

Y coordinate (top).

wnumber

Width of rectangle.

hnumber

Height of rectangle.

srcstring

Source of the image.

Instance Methods

Instance Properties