Use HTML5 Canvas to capture part of a web page?

前端 未结 4 1675
别跟我提以往
别跟我提以往 2021-02-04 10:44

I know that you can capture images from an HTML5 video stream using canvas and display them on the page. What I am interested in is can you use the canvas object to create an ov

4条回答
  •  孤街浪徒
    2021-02-04 11:10

    This script allows you to take "screenshots" of webpages or parts of it, directly on the users browser. The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.

    http://html2canvas.hertzen.com/

提交回复
热议问题