如何绘制具有平滑边界的椭圆? [英] How does draw an ellipse with smooth boundaries?

查看:106
本文介绍了如何绘制具有平滑边界的椭圆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我的经验,每次使用椭圆函数时,绘制的椭圆/圆总是有粗糙的边界,这会降低我的应用程序的质量。我该怎么做才能确保椭圆函数绘制椭圆或带有光滑边缘的圆圈?



我尝试过:



我花了这么多时间在谷歌搜索解决方案,但无济于事。

It has been my experience that each time I use the ellipse function, the ellipse/ circle drawn always have rough boundaries and this detracts from the quality of my applications. What must I do to ensure ellipse function draw ellipse or circles with smooth edges?

What I have tried:

I have spent so many hours googling for a solution but to no avail.

推荐答案

你需要的是什么叫空间抗锯齿;你需要了解它是如何工作的:空间抗锯齿 - 维基百科,免费的百科全书 [ ^ ]。



此CodeProject文章可能会有所帮助:使用Windows GDI进行抗锯齿 [ ^ ]。



参见: http://www.ucancode.net/faq/VC++_Drawing_Example.htm [ ^ ]。



-SA
What you need is called spatial anti-aliasing; you need to understand how it works: Spatial anti-aliasing - Wikipedia, the free encyclopedia[^].

This CodeProject article can be helpful: Antialiasing Using Windows GDI[^].

See also: http://www.ucancode.net/faq/VC++_Drawing_Example.htm[^].

—SA


这篇关于如何绘制具有平滑边界的椭圆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆