W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2012

Re: [whatwg] I believe source rectangles for HTML5 Canvas drawImage are specified incorrectly

From: Justin Novosad <junov@chromium.org>
Date: Wed, 12 Dec 2012 13:24:56 -0500
Message-ID: <CABpaAqR99joQKLGXJKpuvEVX6Uxs5K8f+OQmyCYi4JdY3gKWZA@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: whatwg@lists.whatwg.org, Jeff Muizelaar <jmuizelaar@mozilla.com>, Vladimir Vukicevic <vladimir@pobox.com>, Ian Hickson <ian@hixie.ch>, Kevin Gadd <kevin.gadd@gmail.com>
On Wed, Dec 12, 2012 at 12:39 PM, Rik Cabanier <cabanier@gmail.com> wrote:

>
> What would be the next step? Should we define a new version of drawImage
> with the extra parameter?


That is one option, but I think a context attribute (like
imageSmoothingEnabled) is also worth considering.
Perhaps image smoothing could be an enum rather than boolean with an
additional mode that prevents color bleeding.


> If so, we probably want the description of the existing drawImage call to
> change so it leaves the resampling issue undefined unless WebKit is OK with
> changing their current behavior.
>

IMHO: Undifined behavior is a spec bug. If we have a problem with the spec,
we fix the spec, we don't just each do our own thing.
Received on Wednesday, 12 December 2012 18:25:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:50 UTC