Can I render and set an HTML5 canvas to an HTML IMAGE source?

Is there a way to render the canvas in the splash screen into an HTML IMAGE element?

+4
source share
1 answer

img.src = canvas.toDataURL();

where img and canvas are the corresponding element of the object (from document.getElementByElement(...) ).

+5
source

All Articles