Marvzz
Marvzz

Reputation: 1555

HTML 5 Canvas and Javascript: Combining layered canvases

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?

Upvotes: 2

Views: 5859

Answers (2)

shinkou
shinkou

Reputation: 5154

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

Upvotes: 0

Related Questions