Class: Image

Image(srcopt)

new Image(srcopt)

Image object is used to draw an image from URL.
Parameters:
Name Type Attributes Description
src string <optional>
Source URL of the image.
Source:

Members

box

Box object containing the size of the object.
Source:

image

Image source DOM element.
Source:

Methods

setImage(src)

Set the image of the object. Automatically sets the box size to match the image.
Parameters:
Name Type Description
src string Source URL of the image.
Source: