NISHIO Hirokazu[English][日本語]

Retrieving the currently displayed image

pRegroup-done-2019 js

var image = new Image();
image.id = "foo"
image.src = canvas.toDataURL();
document.getElementById('bar').appendChild(image);

This page is auto-translated from /nishio/今表示している画像の取得 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.


(C)NISHIO Hirokazu / Converted from Markdown (en)
Source: [GitHub] / [Scrapbox]