W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Blurry lines in 2D Canvas (and SVG)

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 25 Jul 2013 09:05:12 -0500
Message-ID: <CABirCh9ixW8Hsug5utyhGVKpkLb4TD0uUmia8-c_64EqyB_zRg@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: whatwg <whatwg@whatwg.org>
On Thu, Jul 25, 2013 at 12:24 AM, Rik Cabanier <cabanier@gmail.com> wrote:

Yes, that's what I had in mind: the developer detects the device pixel
> ratio and scales up the canvas so the pixels match.

That reduces to the simple case, then.  The pixel ratio gets out of the
picture entirely if you adjust the canvas so it's rendered 1:1 to pixels,
so the rules for getting hard edges are the same (half-pixels for strokes,
integer pixels for fills).

Glenn Maynard
Received on Thursday, 25 July 2013 14:05:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC