在命令行中指定抗锯齿属性
我记得不久前,有人发布了一个关于如何指定全局渲染提示以在 java 中使用抗锯齿的链接。
不幸的是我找不到问题。
如何指定渲染提示以在 swing 中使用抗锯齿?
I remember, not too long ago, somebody post a link on how to specify the global rendering hints to use anti-alias in java.
Unfortunately I can't find the question.
How can I specify the rendering hint to use anti-alias in swing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于单个 Graphics2D:
在您正在绘制的 Graphics2D 上调用它,您将获得抗锯齿功能!
对于全局设置:
编辑
by oreyes:
第一个做到了!
替代文本 http://img35.imageshack.us/img35/4421/imagen1urb.png
与
替代文本 http://img169.imageshack.us/img169/4089/imagen2i .png
For a single Graphics2D:
Call that on the
Graphics2D
you are drawing on, and you will have anti-aliasing!!For global settings:
EDIT
By oreyes:
The first one did it!!!
alt text http://img35.imageshack.us/img35/4421/imagen1urb.png
vs.
alt text http://img169.imageshack.us/img169/4089/imagen2i.png