(private) new xrx.vml.Image(The)
VML class representing an image.
Parameters:
Name | Type | Description |
---|---|---|
The |
HTMLElement | HTML element. |
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. -
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. -
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. -
(private) xrx.vml.Image#strokeAndFill_()
-
- Inherited From:
- Source: