2

I wanted to combine images from different canvases (layered on top of each other using z-index) to export as one single image.

Is this possible?

Marvzz
  • 1,535
  • 3
  • 15
  • 22
  • possible duplicate of [How can I save div as image at client side where div contains one or more than one HTML5 canvas elements?](http://stackoverflow.com/questions/3880330/how-can-i-save-div-as-image-at-client-side-where-div-contains-one-or-more-than-on) – Phrogz Jan 06 '11 at 14:51
  • possible duplicate of [Save many canvas element as image](http://stackoverflow.com/questions/3750580/save-many-canvas-element-as-image) – jtbandes Mar 20 '12 at 14:10

2 Answers2

0

Try using the context.getImageData() and context.putImageData(). I haven't tried that in Javascript before, but it shouldn't be that difficult.

HTML Canvas 2D Context

shinkou
  • 5,138
  • 1
  • 22
  • 32