Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HiDPI (「網膜」) ディスプレイで実行されていることを SWT アプリケーションから検出する方法は?
のDeviceスーパークラスである クラス には、ディスプレイの DPI 値を返すDisplayメソッドが呼び出されています。getDPI()
Device
Display
getDPI()
Device device = shell.getDisplay(); System.out.println(device.getDPI());