[whatwg] More random comments on the putImageData definition

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.

--Oliver

On Jan 25, 2008, at 2:30 PM, Anne van Kesteren wrote:

> On Fri, 25 Jan 2008 21:00:41 +0100, Oliver Hunt <oliver at apple.com>  
> wrote:
>> [...]
>
> I had a question as I still think ImageData should be simplified.  
> Are you planning to support high resolution ImageData objects? As  
> specified ImageData is in device pixels rather than in canvas pixels  
> yet no browsers support this and last we checked content is already  
> assuming otherwise.
>
>
> -- 
> Anne van Kesteren
> <http://annevankesteren.nl/>
> <http://www.opera.com/>

Received on Friday, 25 January 2008 14:57:56 UTC