[whatwg] <canvas> and ImageData

On Sun, 3 Feb 2008, Anne van Kesteren wrote:
>
> On Sun, 03 Feb 2008 10:43:10 +0100, Ian Hickson <ian at hixie.ch> wrote:
> > On Fri, 25 Jan 2008, Oliver Hunt wrote:
> > > 
> > > Another thing that we need is some way to determine what the device
> > > pixel->css pixel ratio is.  Currently there's isn't even a real way to
> > > tell that it's 1:1 -- you would have do do a fillRect(width-1, height-1,
> > > 1, 1),; then getImageData(width-1, height-1, 1, 1) and see if they
> > > match.  Conceivably you could do this multiple times to estimate the
> > > ratio, but it would be non-trivial.
> > 
> > Why would you need that data?
> 
> The moment people start using getImageData() as storage mechanism (which they
> will if browsers do not fix their data: image origin stuff) you'll have a
> problem

So you want to change the spec and get browsers to implement something to 
work around a problem with browsers implementing something else in the 
spec? :-)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 10 February 2008 13:52:33 UTC