Is it possible to capture or print what's displayed in an html canvas as an image or pdf?
I'd like to generate an image via canvas, and be able to generate a png from that image.
canvasexporthtmljavascriptpng
Is it possible to capture or print what's displayed in an html canvas as an image or pdf?
I'd like to generate an image via canvas, and be able to generate a png from that image.
Best Answer
Oops. Original answer was specific to a similar question. This has been revised:
with the value in IMG you can write it out as a new Image like so: