Constructor
new Image(id, url, x, y, optionsopt)
- Description:
Instantiate an Image object
- Source:
- See:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
number | ID of the image object |
||||||||||||||||||||||||||
url |
string | URL of the image. To provide the image data directly
set the |
||||||||||||||||||||||||||
x |
number |
0
|
X position to draw the image |
|||||||||||||||||||||||||
y |
number |
0
|
Y position to draw the image |
|||||||||||||||||||||||||
options |
object |
<optional> |
Additional configuration options Properties
|
Extends
- DisplayWidget
Methods
(async) data()
- Description:
Fetch the image data and base64 encode it
- Source: