W3C home > Mailing lists > Public > public-html@w3.org > April 2007

Re: Canvas

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Sun, 08 Apr 2007 14:36:37 +0900
Message-ID: <46187F65.5010302@students.cs.uu.nl>
To: Andrew Fedoniouk <news@terrainformatica.com>
CC: David Hyatt <hyatt@apple.com>, public-html@w3.org
Andrew Fedoniouk schreef:
>> <canvas> is a dynamic image that can be generated on the fly via JS. 
>> There is usefulness to this model, since it allows you to build the 
>> bitmap once and then treat it like an image from that point on.
>
> If it is just an image then what was/is wrong with existing Image object
> and <img> that are there from the primordial Navigator?
>
> <img id="canvas" src="placeholder.gif" />
>
> <script>
>   var img = $("#canvas");
>   var gfx = img.graphics( 300,300, "white" );
>   gfx.line(...);
> </script>
>
> or so.

Ah, yes, I think this is a very good idea! ‘1+’, so to say :).

The reference to ‘placeholder.gif’ even seems excessive; only if you 
want to have a fallback image. The default form would be simply <img/>. 
It would basically mean slapping on the <canvas> API to <img>.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.


Received on Sunday, 8 April 2007 05:38:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:52 GMT