javascript - How to grab images generated by canvas
伊谢尔伦
伊谢尔伦 2017-06-05 11:09:30
0
1
538

I need to synthesize images. I wonder if I can directly grab the image generated by canvas in the background and then return it to the front end?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
黄舟

The image front-end of canvas can be grabbed by calling the toDataURL() method.
The specific usage can be found at https://developer.mozilla.org...

To download, use the download attribute added in the a tag in HTML or download through the backend. For details, you can also refer to the canvas image download

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template