Class: xrx.vml.Image

xrx.vml. Image

(private) new xrx.vml.Image(The)

VML class representing an image.
Parameters:
Name Type Description
The HTMLElement HTML element.
Source:

Extends

Members

xrx.vml.Image#canvas_ :xrx.canvas.Canvas

The parent canvas object.
Type:
Inherited From:
Source:

xrx.vml.Image#context_ :CanvasRenderingContext2D

The rendering context.
Type:
  • CanvasRenderingContext2D
Inherited From:
Source:

Methods

(static) xrx.vml.Image.create(canvas)

Creates a new image.
Parameters:
Name Type Description
canvas Raphael The parent Raphael object.
Source:

xrx.vml.Image#applyTransform(matrix)

Applies a transformation matrix on this element.
Parameters:
Name Type Description
matrix goog.math.AffineTransform The transformation matrix.
Inherited From:
Source:

xrx.vml.Image#draw(image)

Draws the image.
Parameters:
Name Type Description
image HTMLImageElement The image to draw. Make sure that image has naturalWidth and naturalHeight attributes.
Source:

xrx.vml.Image#getCanvas() → {xrx.canvas.Canvas}

Returns the parent canvas object.
Inherited From:
Source:
Returns:
The parent canvas object.
Type
xrx.canvas.Canvas

xrx.vml.Image#getContext() → {CanvasRenderingContext2D}

Returns the HTML canvas rendering context.
Inherited From:
Source:
Returns:
The rendering context.
Type
CanvasRenderingContext2D

xrx.vml.Image#setImage(image)

Sets a new HTML image element.
Parameters:
Name Type Description
image Image The HTML image element.
Source:

(private) xrx.vml.Image#strokeAndFill_()

Inherited From:
Source: