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

[whatwg] putImageData() and getImageData()

From: Philip Taylor <excors+whatwg@gmail.com>
Date: Sat, 12 May 2007 17:32:43 +0100
Message-ID: <ea09c0d10705120932j5f721a4ewbd1c563d09c3db59@mail.gmail.com>
On 12/05/07, Anne van Kesteren <annevk at opera.com> wrote:
> These features are nice but I don't think authors will understand that
> imagedata.height != canvas.height (likewise for width). Authors will just
> make something that works in their browser and then assume it will work
> everywhere else. Which would horribly break. Even the more experienced
> <canvas> developers playing with these features have already made these
> mistakes.

Looking for people using getImageData already, I find:

http://canvaspaint.org/paint.js - incorrect (though commented out)

http://svn.sourceforge.net/viewvc/jsmsx/trunk/msx.js?view=markup - incorrect

http://www.thescripts.com/forum/thread521112.html - incorrect

(or maybe <http://f1.grp.yahoofs.com/v1/gORFRoOLlxuXtJddXwdSyravD-aFfgNuYoSzjI8vUevuBxus3V1sXs5xckiHKd1osiUpDE_bku-vtGMFPV_M-2JZkLKXTqc/buttons.html>)
- correct

I couldn't find any others doing anything with the
ImageData.width/height, but three of those four will break when
somebody implements getImageData with imagedata.width != canvas.width.

Philip Taylor
excors at gmail.com
Received on Saturday, 12 May 2007 09:32:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC