How to draw a subpixel line

前端 未结 5 2649
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 22:27

In the following code, I\'m trying to draw two lines: One with a subpixel width (0.5) and the other with 1px width:

        var img = new Bitmap(256, 256);
              


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 23:14

    I do not think it makes sense to use subpixel here in this case. You are exporting it to an image file anyway. Try greater width value instead.

提交回复
热议问题