W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: Remove canvas createImageData(imagedata)

From: Simon Pieters <simonp@opera.com>
Date: Mon, 31 Aug 2009 07:32:55 +0200
To: "Ian Hickson" <ian@hixie.ch>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.uziho5jridj3kv@simon-pieterss-macbook.local>
On Sun, 30 Aug 2009 23:44:15 +0200, Ian Hickson <ian@hixie.ch> wrote:

>> AFAICT it's just convenience for createImageData(imagedata.width,
>> imagedata.height), but more confusing.
>
> imagedata.width is not the CSS pixel width of the image data.

"When invoked with a single imagedata argument, it must return an  
ImageData object representing a rectangle with the same dimensions as the  
ImageData object passed as the argument."

It is not at all clear that "the same dimensions" are supposed to be  
different from imagedata.width and imagedata.height.

Also:

>> What's the use case for createImageData(imagedata)?

-- 
Simon Pieters
Opera Software
Received on Monday, 31 August 2009 05:33:39 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 October 2014 16:24:51 UTC