java 2d图形
If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before. For example, the colors of your Java2D graphic may be all wrong for no apparent reason.
如果您已在Microsoft Windows客户端上升级到Java2 Update 10,则可能发现Java应用程序无法像以前那样运行。 例如,您的Java2D图形的颜色可能无缘无故都是错误的。
After I upgraded, I discovered the reason for this is that Java2 update 10 uses by default the Direct3D pipeline for accelerating the rendering of Java applications. This is good for performance, but exposes your application to the incompatibilities and the platform-dependencies of a particular graphics driver (e.g., my PC has a Radeon HD 2400).
升级后,我发现原因是Java2 update 10默认使用Direct3D管道来加速Java应用程序的呈现。 这对性能有好处,但是会使您的应用程序暴露于特定图形驱动程序的不兼容性和平台依赖性(例如,我的PC具有Radeon HD 2400)。
So if you hit this issue, the first thing to do is to download the latest driver for your graphic card.
因此,如果遇到此问题,首先要做的就是为图形卡下载最新的驱动程序。
If this still doesn't help, you can disable the accelerated graphic pipeline for Java2D by launching your Java app with this parameter:
如果仍然不能解决问题,可以通过使用以下参数启动Java应用程序来禁用Java2D的加速图形管道:
-Dsun.java2d.d3d=false
Hope that helps!
希望有帮助!
翻译自: https://www.experts-exchange.com/articles/224/How-to-prevent-Java2-update-10-Java2D-graphic-glitches.html
java 2d图形