Image constructor

Image(
  1. dynamic imgElement, [
  2. 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]);