How to save HTML5 canvas?

后端 未结 4 441
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 09:30

Currently I am using Canvas2Image to save the content of my HTML5 canvas. It doesn\'t appear to work in Google Chrome, however. Any ideas on how to work around the issue are wel

4条回答
  •  感情败类
    2021-02-01 09:48

    use this code

    
    
    
    
    
    
    
    
    
    
    
    
    
    

    download these canvas2image.js and base64.js and save it in local folder for the working of this code.

    These will be available in the site http://www.nihilogic.dk/labs/canvas2image/

提交回复
热议问题