pathname of image to load, relative to caller's current folder (e.g. "img/boromir.jpg")
Add a new image to the library, running in the Web browser.
pathname of image to load, relative to caller's current URL (e.g. "img/boromir.jpg")
Creates a Canvas instance. This function works in both Node.js and Web browsers, where there is no Canvas constructor.
Optionally specify to create a PDF or SVG canvas. Defaults to an image canvas.
Get an image from the library by name.
image base filename, e.g. "boromir.jpg"
fully-loaded Image (so its dimensions and pixels are immediately available for use)
Writes an image in PNG format to a file, running in Node.js.
data: URL containing image data
filename to write image to
Generated using TypeDoc
Add a new image to the library, running in Node.js.