简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM