dpi-aware

Java disable dpi-aware not working

冷暖自知 提交于 2019-11-26 19:10:58
问题 I'm trying to run a Java application with -Dsun.java2d.dpiaware=false argument but nothing happens. I expect to have a blurred UI but with normal size of icons and fonts, it seems that this flag does not work. I'm using JDK 1.8.0_45 on Windows 8.1. I found this bug https://bugs.openjdk.java.net/browse/JDK-8080153 but I don't understand how to workaround it. 回答1: Fix for Windows, follow these steps: Create a windows regedit new DWORD Press Windows Button + R, type “regedit”, and then click OK.

DPI Awareness - Unaware in one Release, System Aware in the Other [duplicate]

孤人 提交于 2019-11-26 08:50:47
问题 This question already has an answer here: Windows Forms window changes its size when I create a WPF window 3 answers So we have this really odd issue. Our application is a C#/WinForms app. In our 6.0 release, our application is not DPI aware. In our 6.1 release it has suddenly become DPI aware. In the 6.0 release, if you run it in high DPI, it uses Windows bitmap scaling, which is fine, because that does not affect the screen layouts. In the 6.1 release, because it has for some reason become

DPI Awareness - Unaware in one Release, System Aware in the Other [duplicate]

霸气de小男生 提交于 2019-11-26 02:13:26
This question already has an answer here: Windows Forms window changes its size when I create a WPF window 3 answers So we have this really odd issue. Our application is a C#/WinForms app. In our 6.0 release, our application is not DPI aware. In our 6.1 release it has suddenly become DPI aware. In the 6.0 release, if you run it in high DPI, it uses Windows bitmap scaling, which is fine, because that does not affect the screen layouts. In the 6.1 release, because it has for some reason become DPI aware, the user interfaces get mangled. We are not in a position to fix this right now. We have

Creating a DPI-Aware Application

拟墨画扇 提交于 2019-11-26 00:15:48
问题 I have a form application in C#. When I change the monitor\'s DPI, all the controls move. I used the code this.AutoScaleMode = AutoScaleMode.Dpi , but it didn\'t avoid the problem. Does anyone have an idea? 回答1: EDIT: As of .NET 4.7, windows forms has improved support for High DPI. Read more about it on docs.microsoft.com It only works for Win 10 Creators Update and higher though, so it might not be feasible to use this yet depending on your user base. Difficult, but not impossible. Your best

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

白昼怎懂夜的黑 提交于 2019-11-25 22:13:45
问题 I\'ve created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good! But instead of rendering the fonts with a higher font size, all texts are just scaled up, too. That of course leads to very blurry text (on all controls like buttons etc.). Shouldn\'t windows take care of rendering the texts correctly? For example my application\'s title bar is rendered crisp & clear. 回答1: Once you go