chrsmithdemos / html5rocks

Automatically exported from code.google.com/p/html5rocks
0 stars 0 forks source link

canvas & sub-pixel rendering #601

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

22:01 sephr: paul_irish: on 
http://www.html5rocks.com/en/tutorials/canvas/performance/ "HTML5 canvas 
supports sub-pixel rendering, and there’s no way to turn it off"
22:01 sephr: the way to turn it off is to use have the canvas the appropriate 
size in relation to the sprites
22:01 sephr: and then nearest neighbor scale the canvas to the target size
22:03 sephr: image-rendering: optimizeSpeed; image-rendering: 
-webkit-optimize-contrast; image-rendering: -moz-crisp-edges; 
-ms-interpolation-mode: nearest-neighbor;
22:03 sephr: is the css you should use
22:03 sephr: and then context.mozImageSmoothingEnable = true iirc

Original issue reported on code.google.com by paulir...@google.com on 18 Aug 2011 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by ericbidelman@chromium.org on 9 Sep 2011 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by ericbide...@html5rocks.com on 13 Oct 2011 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by ericbide...@html5rocks.com on 24 Jul 2012 at 12:04