![](https://i-blog.csdnimg.cn/blog_migrate/ddd7ded493db36346f458c6b7451bef8.png)
bresenham画线算法
Here you will get program for bresenham’s line drawing algorithm in C and C++.
在这里,您将获得用于使用C和C ++的bresenham的线条绘制算法的程序。
This algorithm is used in computer graphics for drawing line.
该算法在计算机图形学中用于画线。
The program will work in Turbo C or Turbo C++ compiler as it uses graphics.h header file.
该程序将使用graphics.h头文件在Turbo C或Turbo C ++编译器中运行。
Make sure to change the path of BGI folder inside initgraph() function according to your system. Otherwise the program will not work.
确保根据您的系统更改initgraph()函数中BGI文件夹的路径。 否则,该程序将无法运行。
Also Read: