Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Canvas Image Smoothing

What is

ctx.mozImageSmoothingEnabled = false;

for webkit(or other browsers)? I need it to remove anti-aliasing because i am trying to get a pixelized effect to an image. With anti-aliasing, it looks bad-quality but with no sharp edges.

like image 390
NebNeb Avatar asked Sep 10 '25 21:09

NebNeb


1 Answers

For the <canvas> tag, WebKit nightlies after r117635 and Chrome Canary 21.0.1154.0 now have a webkitImageSmoothingEnabled attribute. (Note that this applies only to <canvas>, not to HTML elements more generally.)

like image 144
Stephen White Avatar answered Sep 13 '25 14:09

Stephen White