吴晓林的C线算法源代码?
我正在寻找用 C 语言实现 Wu 的抗锯齿线条绘制算法的良好且高效的实现,有人有这个代码可以与我分享吗?
谢谢
I'm looking for a nice and efficient implementation of Xiaolin Wu's anti-aliased line drawing algorithm in C, does anyone have this code they could share with me?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
维基百科有伪代码。
Google 有很多示例,例如 这个 或 这个。你的问题让我想起了这篇关于抗锯齿的好文章。
编辑:是时候发现
Wikipedia has pseudo code.
Google has many examples like this one or this one. And your question reminded me this nice article on antialiasing.
EDIT: It's time to discover Hugo Helias's website if you don't know it already.
想知道 此处 的实现是否正确,因为在
条件
if (ErrorAcc <= ErrorAccTemp)
始终为 false。Wondering if implementation here is correct, because in
condition
if (ErrorAcc <= ErrorAccTemp)
is always false.