- From: Vladimir Vukicevic <vladimirv@gmail.com>
- Date: Tue, 16 May 2006 01:25:01 -0700
On 4/26/06, Ian Hickson <ian at hixie.ch> wrote:
> ImageData getImageData(in float x, in float y, in float w, in float h);
> void drawImageData(in float x, in float y, in ImageData d);
I'm about to implement this as suggested; however, I'd call the second
function here "putImageData" instead of "drawImageData"; draw implies
an actual drawing operation, similar to drawImage, that would be
affected by (at least) the current compositing operator. What's
actually happening is a direct replacement of the pixel data in the
given region, so that could be confusing. (If someone does want the
operator to be involved they can use an offscreen canvas to call
putImageData on and drawImage that in.)
- Vlad
Received on Tuesday, 16 May 2006 01:25:01 UTC