[whatwg] Opera2d-game Extensions to Canvas: setPixel() and getPixel()

2009-04-07 Thread Jeff Creamer
Hi. Since March of '06, Opera 9 has supported a custom extension to the canvas context called "opera-2dgame." Importantly, their extension adds these methods: getPixel(x, y) Returns the pixel value (colour, opacity) at (x, y). Returned in the form #rrggbb if fully opaque and rgba(r, g, b, a)

Re: [whatwg] Opera2d-game Extensions to Canvas: setPixel() and getPixel()

2009-04-07 Thread Oliver Hunt
Why not make getPixel () and setPixel() a standard? The ImageData APIs already provide the ability to do this and are already supported by Firefox, Opera and Safari. --Oliver

Re: [whatwg] Opera2d-game Extensions to Canvas: setPixel() and getPixel()--Ooops!

2009-04-07 Thread Jeff Creamer
Aiee...sorry for the trouble; cancel my earlier note. [I realize putImageData and getImageData fill the bill : /.] Sincerely, Jeff C. Hi. Since March of '06, Opera 9 has supported a custom extension to the canvas context called "opera-2dgame." Importantly, their extension adds these