將HTML Canvas捕獲爲gif / jpg / png / pdf嗎? - Capture HTML Canvas as gif/jpg/png/pdf?

問題:

Is it possible to capture or print what's displayed in an html canvas as an image or pdf? 是否能夠捕獲或打印html畫布中顯示爲圖像或pdf的內容? html

I'd like to generate an image via canvas, and be able to generate a png from that image. 我想經過畫布生成圖像,並可以從該圖像生成png。 canvas


解決方案:

參考一: https://stackoom.com/question/3sLN/將HTML-Canvas捕獲爲gif-jpg-png-pdf嗎
參考二: https://oldbug.net/q/3sLN/Capture-HTML-Canvas-as-gif-jpg-png-pdf
相關文章
相關標籤/搜索