After I draw a line on canvas I scale document (with CTRL+Wheel), as it turned out, a line is raster and it looks pretty ugly after scaling. How can I solve the issue? Is there something better then redrawing each time when document is scaled?
Thank you in advance!
If you can only use the canvas element, there is no other way to display a sharp line, than redrawing it when zooming. This is because the canvas doesn’t support vector graphics.
Svg could be a option, if you’re able to use a different technology.