目录

Image

Image object, which is created by Canvas.createImage and can be used to draw images on the canvas.

Since: 2.0.2

Attributes

Name Type Read-Only Description
src string No Image URL.
width number Yes Actual image width. The unit is px.
height number Yes Actual image height. The unit is px.
onload function No Callback triggered when an image has finished loading.
onerror function No Callback triggered when an image loading error occurs.