W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

Re: [csswg-drafts] [css-transforms] Provide a way to specify rastered content scale for transformed content (#236)

From: Philip Rogers via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Nov 2019 16:04:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-548844855-1572624251-sysbot+gh@w3.org>
Does `<canvas>` provide a primitive for this? The canvas backing size (defined by the width and height attributes) is effectively the raster scale that will be used by `drawImage`. This technique has been used for pixel-perfect canvas on high-dpi displays, where the device pixel ratio is used as the raster scale. If the canvas is transformed (scaled) further, the `image-rendering` property controls the resampling algorithm used between the raster scale and the screen.

GitHub Notification of comment by progers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/236#issuecomment-548844855 using your GitHub account
Received on Friday, 1 November 2019 16:05:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC