[whatwg] getImageData/putImageData comments
ian at hixie.ch
Fri Jun 12 11:42:16 PDT 2009
On Mon, 1 Jun 2009, Boris Zbarsky wrote:
> I still think that we need a better "I have some externally-derived
> pixel data I'd like to just stick in this canvas" API here. fillRect()
> has terrible performance characteristics (as has been brought up many
> times before), and the current imagedata design makes it very difficult
> to use it correctly for this purpose...
It's not that hard, it's an extra four or five lines of code to fill in
multiple pixels in a square (two nested for-loops and an expression or two
to work out what the limit is). Compared to the maths such code would be
doing anyway, this is trivial stuff.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg