W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] proposed canvas 2d API additions

From: Vladimir Vukicevic <vladimirv@gmail.com>
Date: Tue, 16 May 2006 01:25:01 -0700
Message-ID: <9540d010605160125o5916ae1u29c7610cc9af70cb@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC