canvas icon indicating copy to clipboard operation
canvas copied to clipboard

Disabling anti-aliasing with SVG rendering?

Open thonkinator opened this issue 10 months ago • 0 comments

I'm trying to disable anti-aliasing when rendering SVGs to canvas, but ctx.imageSmoothingEnabled and ctx.imageSmoothingQuality seem to have no effect. I also tried setting shape-rendering="crispEdges" on the SVG itself, but that doesn't seem to change anything either. Is there a way to achieve this?

thonkinator avatar Mar 26 '24 00:03 thonkinator