[英]Anti-aliasing management in Java FX
I am implementing a professional software using JavaFX 2.0 (JDK 1.8)
and I've got some image rendering problems in my toolbar. 我正在使用JavaFX 2.0 (JDK 1.8)
实现专业软件,但工具栏中出现了一些图像渲染问题。
The ImageView on a toolbar button resizes when mouse hovers
him. 当mouse hovers
在工具栏按钮上时,ImageView会调整大小。 It raises a problem when this image contains narrow letters : 当此图像包含窄字母时,它将引起一个问题:
The "little" image seems easier to read than the big one and preserves the original image's letter spacing, so my question is: is it possible to choose and custom anti-aliasing mode ( FXAA
, SMAA
, etc.) for an ImageView? “小”图像似乎比大图像更易于阅读,并且保留了原始图像的字母间距,因此我的问题是:是否可以为ImageView选择和自定义抗锯齿模式( FXAA
, SMAA
等)? To add a constraint, I cannot enhance the toolbar height. 要添加约束,我无法提高工具栏的高度。
One of the Scene constructors accepts a parameter of type SceneAntialiasing which gives you 2 options: 其中一个Scene构造函数接受一个SceneAntialiasing类型的参数,该参数提供2个选项:
As far as I know, those are the only 2 options you have. 据我所知,这是您仅有的两个选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.