Is there any way to save a dirty canvas?

后端 未结 3 1099
夕颜
夕颜 2021-01-21 06:57

I am making screenshots of videos with HTML5 canvas, the video is hosted elsewhere, everything works except toDataURL() because the canvas is dirty. So, I am wondering, is ther

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-21 07:09

    What about, I haven't tried it yet, if you redraw the original canvas on another canvas which you then save to an image. (and use css or position the canvases over each other to "hide" the second canvas).

    Will the second canvas be dirty?

    (thinking about a technique like thisone)

提交回复
热议问题