Class: ImageCombiner

ImageCombiner() → {ImageCombiner}

new ImageCombiner() → {ImageCombiner}

Class utilising html5 canvas to composite a combined image. This is currently used to create the nerve map texture.
Author:
  • Alan Wu
Source:
Returns:
Type
ImageCombiner

Methods

addElement(elem)

Add an img element to the array of elements which will be composited together.
Parameters:
Name Type Description
elem object DOM image object containing an image.
Source:

getCombinedImage()

Get the combined image composited by DOM image elements currently in the array.
Source:

removeElement()

Remove an img element from the array of elements. {object} elem - DOM image object containing an image.
Source:

setSize(widthIn, heightIn)

Set the size of the canvas.
Parameters:
Name Type Description
widthIn Number parameter to set the width of the canvas, must be larger than 0.
heightIn Number parameter to set the height of the canvas, must be larger than 0.
Source: