(private) new xrx.canvas.Image(canvas)
Canvas class representing an image.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
xrx.canvas.Canvas | The parent canvas object. |
Extends
Members
-
xrx.canvas.Image#canvas_ :xrx.canvas.Canvas
-
The parent canvas object.
Type:
- Inherited From:
- Source:
-
xrx.canvas.Image#context_ :CanvasRenderingContext2D
-
The rendering context.
Type:
- CanvasRenderingContext2D
- Inherited From:
- Source:
Methods
-
(static) xrx.canvas.Image.create(canvas)
-
Creates a new image.
Parameters:
Name Type Description canvas
xrx.canvas.Canvas The parent canvas object. -
xrx.canvas.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.canvas.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.canvas.Image#getCanvas() → {xrx.canvas.Canvas}
-
Returns the parent canvas object.
- Inherited From:
- Source:
Returns:
The parent canvas object.- Type
- xrx.canvas.Canvas
-
xrx.canvas.Image#getContext() → {CanvasRenderingContext2D}
-
Returns the HTML canvas rendering context.
- Inherited From:
- Source:
Returns:
The rendering context.- Type
- CanvasRenderingContext2D
-
(private) xrx.canvas.Image#strokeAndFill_()
-
- Inherited From:
- Source: