These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:26 pm Advanced search

General CANVAS question.

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

General CANVAS question.

Postby xul-vipz » Sat Feb 16, 2008 7:23 pm

I'm not sure who to ask, but maybe you guys have an answer for me or can point me in the right direction.

A while ago I saw an simple demonstration of the CANVAS element:
(slide 20) http://www.mozilla-japan.org/events/200 ... ns/mscott/

At that time I was browsing with Firefox and the following question arose:

Is it possible to save a CANVAS graphical element to an image format on disk like PNG?

An addtional question (I didn't read the specs fully, so you may ignore this one):

Can I update CANVAS graphs dynamically? (like in: http://ecmanaut.blogspot.com/2006/01/sv ... taken.html)
xul-vipz
<h6>
 
Posts: 2
Joined: Sat Feb 16, 2008 7:12 pm
Location: Enschede/Hengelo, NL

Re: General CANVAS question.

Postby zcorpan » Mon Feb 18, 2008 6:48 pm

xul-vipz wrote:Is it possible to save a CANVAS graphical element to an image format on disk like PNG?
Yes. The browser could provide UI for this, e.g. in the context menu. There's a method in the DOM for this, toDataURL(): http://www.whatwg.org/specs/web-apps/cu ... #todataurl

xul-vipz wrote:Can I update CANVAS graphs dynamically? (like in: http://ecmanaut.blogspot.com/2006/01/sv ... taken.html)
You draw on the canvas with script to create the graphs in the first place. So yes.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests