Top "Dpi" questions

DPI stands for Dots Per Inch

How to "correctly" detect DPI of display with Java?

I have the following app that draws a rule : public class Rule extends JComponent { public static final long serialVersionUID=26362862L; // …

java detect dpi
C# WPF resolution independancy?

I am developing a map control in WPF with C#. I am using a canvas control e.g. 400 x 200 which …

c# wpf gis resolution dpi
SetProcessDpiAwareness not having effect

I've been trying to disable the DPI awareness on a ClickOnce application. I quickly found out, it is not possible …

c# wpf pinvoke clickonce dpi
Delphi High DPI switch between own scaling and Windows scaling

Some of my customers want to be able to scale my application manually (when Windows dpi is set to 96), so …

delphi dpi hdpi
GetSystemMetrics() returns wrong value for SM_CXSCREEN

I've run into an interesting problem. At least in Vista, getSystemMetrics(SM_CXSCREEN) returns an incorrect value when the desktop …

winapi dpi screen-resolution
Can I set the DPI resolution of my Java Swing application without changing the systems' DPI setting?

I have a Java application using the Substance LookAndFeel with Windows as the the target platform and I want to …

java swing testing accessibility dpi
SetProcessDPIAware seems not to work under windows 10

I am trying to get the real screen resolution (in pixels) in a windows C++ app. When the windows dpi …

c++ winapi screen-resolution dpi
How to read the physical screen size of OSX?

I would like to know the physical screen size under Mac OSX. But NSDeviceResolution is always reporting wrong value (72), so …

objective-c macos screen dpi
high DPI problems

I have a problem with the display of our .NET Windows application under high dpi settings. All forms are set …

.net dpi winapp
Windows Display Setting at 150% still shows 96 DPI

On my laptop running Win7, when I set the display setting to 125%, the DPI shows up as 120 (using both graphics.…

windows dpi