如何在区域中创建平滑弧? [英] How can I create smooth arc in region?

查看:78
本文介绍了如何在区域中创建平滑弧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我宣布一个图形对象并将其平滑属性设置为AntiAlias。



您可以在此链接中看到结果:



طورمیتونمترسیمSmoothدرشیءGraphicداشتهباشم? [ ^ ]



黑色绘图弧光滑但白色区域不顺畅。如何创建光滑弧度的区域?



谢谢



我尝试了什么:



我想在区域中创建平滑圆弧

Hello

I declared a "Graphic" object and set its "Smooth" Property to "AntiAlias".

You can see result in this link:

چطور میتونم ترسیم Smooth در شیء Graphic داشته باشم؟[^]

Drawing arc with black color is smooth but white region is not smooth. how can I create region with smooth arc?

thank you

What I have tried:

Nothing comes to my mind to create smooth arc in region

推荐答案

1你没有提到正在使用的框架,这使得几乎不可能重新创建问题。 图形根本没有任何暗示,GDI +,.NET绘图命名空间,WPF等可能有所帮助。



2)你应该在一些在线平台上发布图片,比如imgur等,然后分享这个链接。您当前的链接将我们转移到我们大多数人不理解的阿拉伯语 - 波斯语网站,甚至还需要我们创建一个帐户。



最后,抗锯齿是这种情况的最佳方法。您将整个图形对象设置为抗锯齿,然后它会尽可能多次对每个像素进行采样,以围绕它生成渐变。您应该将其设置为整个图形,以使背景和前景具有抗锯齿效果。
1) You did not mention the framework being used, which makes it almost impossible to even recreate the problem. "graphics" is not any hint at all, GDI+, .NET Drawing namespace, WPF etc, might have helped.

2) You should post the image on some online platform, such as imgur etc, and then share that link. Your current links transfers us to some Arabic-Persian site that majority of us do not understand, and even there is requires us to create an account.

Finally, the antialiasing is the best approach to this scenario. You set the entire graphics object to antialias and then it does its best to sample each pixel more than once to generate a gradient around it. You should set it to entire graphics, to have background and foreground antialiased.


这篇关于如何在区域中创建平滑弧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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