W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] proposed canvas 2d API additions

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 May 2006 15:34:04 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605191533330.21459@dhalsim.dreamhost.com>
On Mon, 8 May 2006, Anne van Kesteren wrote:
>
> Quoting Ian Hickson <ian at hixie.ch>:
> > > > How about:
> > > > 
> > > >    interface ImageData {
> > > >      readonly attribute long int width;
> > > >      readonly attribute long int height;
> > > >      readonly attribute Array data;
> > > >    }
> 
> I saw you added this API and noted that you haven't addressed security 
> yet. Basically the same security considerations as for toDataURL() 
> should apply. I suggest adding that somewhere.

Added.


> One other problem I had with it was that the colors are restricted to 8 
> bit. That may potentially lead to data loss but I guess it's not a major 
> concern yet.

This is already the case in other aspects of the API, I think.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 19 May 2006 08:34:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC