Re: [whatwg] proposed canvas 2d API additions

2006-04-28 Thread Vladimir Vukicevic
On 4/26/06, Ian Hickson <[EMAIL PROTECTED]> wrote: On Mon, 24 Apr 2006, Vladimir Vukicevic wrote: > > The use case that I'm thinking of is essentially: > > pixels = c.getPixels(x, y, width, height); > /* manipulate pixels here */ > c.putPixels(pixels, x, y, width, height); > > That is, direct pix

Re: [whatwg] proposed canvas 2d API additions

2006-04-28 Thread Arve Bersvendsen
On Fri, 21 Apr 2006 21:10:11 +0200, Vladimir Vukicevic <[EMAIL PROTECTED]> wrote: Note: we could return the pixels as integers in the range of 0..255, as 8-bit color is most likely what canvases will be dealing with. However, using floats allow us to easily extend into a 16-bit colorspace with