我有例子: https://developer.mozilla.org/samples/canvas-tutorial/4_5_canvas_linewidth.html 但第一行不等于 1 个像素: 我怎样才能解决这个问题? (浏览器谷歌浏览器)
最佳答案
始终向线条位置添加 0.5 像素以防止抗锯齿。
关于html - 在 html5 Canvas 上不正确显示 lineWidth=1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7607272/