D
Dr J R Stockton
Using <http://dev.w3.org/html5/spec/Overview.html#the-canvas-element>,
which I know to be Draft, I have painted a canvas (in not-IE), executed
as per, from the link,
url = canvas . toDataURL( [ type, ... ])
Returns a data: URL for the image in the canvas.
That gives a long string, apparently of one line, in one instance
starting
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjAAAAGQCAY
and ending
gMHwXTGAYDAaDwWD4LpjAMBgMBoPB8F38H+dJdN6Zfb30AAAAAElFTkSuQmCC
in an <input type=text readonly ...>, which (in at least one browser) I
can Select All, Copy.
Can anyone say how that string can be used, preferably with WinXP
facilities?
Perhaps it can be pasted into page source, within ??...?? to get an
inline graphic.
But I'd like to get an ordinary PNG file containing the picture on the
canvas, and if that string could be used in a more automated manner it
would be better than Alt-PrtScn, paste into Paint, trim, save as PNG.
which I know to be Draft, I have painted a canvas (in not-IE), executed
as per, from the link,
url = canvas . toDataURL( [ type, ... ])
Returns a data: URL for the image in the canvas.
That gives a long string, apparently of one line, in one instance
starting
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjAAAAGQCAY
and ending
gMHwXTGAYDAaDwWD4LpjAMBgMBoPB8F38H+dJdN6Zfb30AAAAAElFTkSuQmCC
in an <input type=text readonly ...>, which (in at least one browser) I
can Select All, Copy.
Can anyone say how that string can be used, preferably with WinXP
facilities?
Perhaps it can be pasted into page source, within ??...?? to get an
inline graphic.
But I'd like to get an ordinary PNG file containing the picture on the
canvas, and if that string could be used in a more automated manner it
would be better than Alt-PrtScn, paste into Paint, trim, save as PNG.