[whatwg] putImageData() and getImageData()

Philip Taylor excors+whatwg at gmail.com
Sat May 12 09:32:43 PDT 2007


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

http://tech.groups.yahoo.com/group/canvas-developers/files/buttons.html
(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



More information about the whatwg mailing list