0

Is there a modification of Bresenhman (or any) algorithm to draw line with defined line width? I can only use DrawPoint(x,y) function. And second question: how to implement filling a figure (for example i draw a triangle and how to make a fill). Please help :)

4

1 回答 1

0

您所需要的只是在wxDC类中。这里有一个小教程。

如何实现多边形填充:Michael Abrash的多边形原始。

如何画一条有宽度的线:将 2 点线拉伸成 4 点框,并使用上述算法。

于 2011-01-06T01:32:02.580 回答