W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2014

Re: [whatwg] CanvasRenderingContext2D and CSS Image filters

From: Vivek Galatage <vivekg@chromium.org>
Date: Fri, 19 Sep 2014 00:29:59 +0530
Message-ID: <CA+ycFOxoVSfr6s=6Egrj=j_ndGBd0UJt_4QSzMG_DHLWd-CU8g@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: WHATWG List <whatwg@whatwg.org>
Oh I see, thanks for the clarification. :)

On Fri, Sep 19, 2014 at 12:02 AM, Tab Atkins Jr. <jackalmage@gmail.com>
wrote:

> On Thu, Sep 18, 2014 at 11:15 AM, Vivek Galatage <vivekg@chromium.org>
> wrote:
> > Hi all,
> >
> > I just wrote a test case which involves applying a CSS image filter
> > (--webkit-filter or filter) using a grayscale filter.
> > http://jsfiddle.net/whyn9075/
> >
> > With this image element, I used a canvas rendering context 2d to
> drawImage.
> > Here is the link, http://imgur.com/7OgXEwp, to the screenshot of the
> > behavior on chrome and FF.
> >
> > The question is: Should the filter even be applied to the bitmap drawn on
> > the canvas?
>
> CSS filters are a rendering-time operation.  They don't do anything to
> the image data itself, which is what <canvas> uses when you call
> drawImage().
>
> ~TJ
>
Received on Thursday, 18 September 2014 19:00:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:30 UTC