[whatwg] order of the color components in an ImageData object.

Mathieu HENRI p01 at opera.com
Fri Mar 2 05:47:02 PST 2007


Hi,

I couldn't find a mention of the order of the color components. Since 
this may vary across device/resolution/screen/... the user agent should 
deal with the pixel format in a transparent way and expose the 
components in a consistent order. Say R,G,B,A as it is already used in 
CSS and SVG.


One more thing, it would be nice to allow to programmatically create an 
ImageData object. The width and height attribute would be mandatory at 
the instantiation. The data attribute would be filled with width * 
height * 4 zeros.




-- 
Mathieu 'p01' HENRI
JavaScript developer, Opera Software ASA



More information about the whatwg mailing list