RemoteImage.constructor

The RemoteImage constructor.

Syntax

new RemoteImage(src, alt?, title?)

Parameters

Return value

A new RemoteImage object.

Throws an error if the URL is invalid.

Returns an empty image (represented as a broken image icon) if the image cannot be fetched or decoded.

Examples

new RemoteImage("https://example.com/cat.png")