All Questions

58
votes
2answers
27109 views

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

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 t...
620
votes
25answers
487901 views

Converting pixels to dp

I have created my application with the height and width given in pixels for a Pantech device whose resolution is 480x800. I need to convert height and width for a G1 device. I thought converting it i...
434
votes
15answers
238488 views

getting the screen density programmatically in android?

How to get the screen density programmatically in android? I mean How to find the screen dpi of the current device?
57
votes
7answers
64712 views

Creating a DPI-Aware Application

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 i...
101
votes
7answers
48645 views

How to write WinForms code that auto-scales to system font and dpi settings?

Intro: There's a lot of comments out there that say "WinForms doesn't auto-scale to DPI/font settings well; switch to WPF." However, I think that is based on .NET 1.1; it appears they actually did a p...
43
votes
11answers
47306 views

Detecting the system DPI/PPI from JS/CSS?

I'm working on a kind of unique app which needs to generate images at specific resolutions according to the device they are displayed on. So the output is different on a regular Windows browser (96ppi...
45
votes
9answers
50482 views

How to get Windows Display settings?

There is setting for Display in Windows 7 (Control Panel -> Display). It allows to change the size of the text and other items on the screen. I need to get this setting to be able to switch on/switch ...
32
votes
3answers
24414 views

How to control the font DPI in .NET WinForms app

I created an app for a small business. Some of the employees in the office can not see the form correctly. The reason is they have their DPI setting set to above 96dpi. Does anybody know of a way to...
25
votes
5answers
29899 views

How do I convert ppi into dpi for Android images?

I have started making graphics for my Android app using Adobe Photoshop. But I am unable to proceed, as the resolution in Photoshop is set in pixels per inch where as the official Google documentation...
45
votes
5answers
28630 views

How can I get the DPI in WPF?

How can I get the DPI in WPF?

Previous Next