Image constructor
Image(
- dynamic imgElement, [
- dynamic options
var imgElement = document.getElementsByClassName('imgBox'); var imgInstance = new fabric.Image(imgElement, { left: 100, top: 100, height: 30, width: 30 }); canvas.add(imgInstance);
Implementation
external Image(imgElement, [options]);