(private) new xrx.shape.Image(drawing)
A class representing an engine-independent image graphic.
Parameters:
Name | Type | Description |
---|---|---|
drawing |
xrx.drawing.Drawing | The parent drawing canvas. |
- Source:
Members
-
(private) xrx.shape.Image#engineElement_ :xrx.canvas.Image|xrx.svg.Image|xrx.vml.Image
-
The engine element.
Type:
- Source:
-
xrx.shape.Image#image_ :HTMLImage
-
The HTML image element.
Type:
- HTMLImage
- Source:
Methods
-
(private) xrx.shape.Image#draw()
-
Draws this image.
- Source:
-
xrx.shape.Image#getHeight() → {number}
-
Returns the height of this image.
- Source:
Returns:
The height.- Type
- number
-
xrx.shape.Image#getImage() → {HTMLImage}
-
Returns the HTML image element used to create the image.
- Source:
Returns:
The HTML image element.- Type
- HTMLImage
-
xrx.shape.Image#getWidth() → {number}
-
Returns the width of this image.
- Source:
Returns:
The width.- Type
- number
-
xrx.shape.Image#setImage(image)
-
Sets a new HTML image element.
Parameters:
Name Type Description image
HTMLImage The HTML image element. - Source: