[Bug 12586] Suggest using Typed Array for ImageData pixels. Add a new 'buffer' attribute that references ArrayBuffer of the pixel data. Convert 'data' (CanvasPixelArray) to Uint8Array view of 'buffer'.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12586

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> 2011-10-20 02:16:14 UTC ---
Yes, you are.  Consider a computation that in fact always produces values in
the range 0-255 but is subject to the usual floating point rounding errors.  If
you truncate, you will never get 255 out of it.

For many computations the end result of this as the computation is iterated is
for all the color channels to collapse to 0...

So you really do want rounding.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 20 October 2011 02:16:20 UTC