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 02:09:37 -0700
Message-ID: <9540d010605160209g595791bdtfa797bbf14e996d4@mail.gmail.com>
On 5/16/06, Vladimir Vukicevic <vladimirv at gmail.com> wrote:
> 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.)

Also: ImageData should come first, for consistency with the other
object-using methods (drawImage):

void putImageData(in ImageData d, in float x, in float y);

    - Vlad (who's writing this as he's implementing)
Received on Tuesday, 16 May 2006 02:09:37 UTC

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