我在SVG图片中嵌入了PNG图片。如何关闭嵌入图像的抗锯齿功能?(或者,对于包括嵌入式图像在内的所有功能都将其关闭吗?)
我尝试在图像对象上设置shape-rendering =“ crispEdges”,但是当我使用Chrome或Inkscape放大时,仍然可以看到模糊边缘。
谢谢
形状渲染用于形状,即直线和圆。图像具有自己的属性image-rendering。你需要这样的东西...
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句