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

后端 未结 12 866
不知归路
不知归路 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 04:28

    Here is a paper and Delphi implementation of a modified version of Bresenham's algorithm for drawing thickened lines.

    You may also want to take a look at Anti-Grain Geometry, a library for high-quality and high-performance software rendering of 2D graphics. Take a look at the demo page to get an idea of what it can do.

提交回复
热议问题