I'm looking for a way to clone a canvas element. Based on this question I tried something like this, which worked:
var canvasContext = $("#canvas1")[0].getContext("2d");
canvasImageData = canvasContext.getImageData(0, 0, canvasContext.canvas.width, canvasContext.canvas.height);
$("#canvas2")[0].getContext("2d").putImageData(canvasImageData, 0, 0);
However, I also need support for IE8 and below. I'm using excanvas, which does not support the image data methods.
Is there another way to achieve this when using excanvas?