how do I create a line of arbitrary thickness using Bresenham?

后端 未结 12 811
不知归路
不知归路 2020-12-01 03:31

I am currently using Bresenham\'s algorithm to draw lines but they are (of course) one pixel in thickness. My question is what is the most efficient way to draw lines of arb

12条回答
  •  离开以前
    2020-12-01 04:33

    I was facing the same problem some time ago. Based on this paper, I created a Matlab reference implementation, which I would like to share on GitHub.

提交回复
热议问题