Skip to content
Eddy Parkinson edited this page Mar 1, 2019 · 5 revisions
  • editor.moveImage(deltaX, deltaY); // move image to delta x, y`
  • editor.rotateImage(deg); // deg=90 - rotate image 90 deg`
  • editor.scaleImage(scale); // scale=1.5 - scale image 1.5 (for both width and height)`
  • editor.addImage(url, select); // url=urlObj, select=true - add image, and make it as current selected image for operation. structure of urlObj refers to options imageUrls array element`
  • editor.setImage(url, index, select) // url=urlObj, index=1, select=false - If 2 or more images exists, replace 2nd image else do nothing. Don't select image.`
  • editor.removeImage(index); // index = 2 - remove 3rd image`
  • editor.removeAll(); // remove all images`
  • editor.reset(); // reset as initial status after ImageEditor created`
  • editor.mergeImage(); // merge all images together, returns a canvas DOM`
Clone this wiki locally