I'm working with HTML/HTML5 and JavaScript only. Div element 'canvasesdiv' contains three HTML5 canvases.
How can I save an image combining all canvases present inside the div 'canvasesdiv' at client side using JavaScript? In my case I don't have any option to do any server side job.
Regards,
Somnath
HTML:
<div style="position: relative; width: 400px; height: 300px;" id="canvasesdiv">
<canvas width="400" height="300px" style="z-index: 1; position: absolute; left: 0px; top: 0px;" id="layer1" />
<canvas width="400" height="300px" style="z-index: 2; position: absolute; left: 0px; top: 0px;" id="layer2"/>
<canvas width="400" height="300px" style="z-index: 3; position: absolute; left: 0px; top: 0px;" id="layer3"/>
</div>
How can I save an image combining all canvases present inside the div 'canvasesdiv' at client side using JavaScript? In my case I don't have any option to do any server side job.
Regards,
Somnath