Questions tagged [dpi]

DPI stands for Dots Per Inch

Dots per inch (DPI, or dpi) is a measure of spatial printing or video dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

1209 questions
44
votes
6 answers

Printing page with bootstrap 3

I've been looking through a lot of answers here on stackoverflow that semi-cover what I'm wondering about, but haven't found anything that worked for me. I understand that the printing page is about 550 px for A4 and therefor bootstrap will use the…
user2890488
  • 497
  • 1
  • 4
  • 8
43
votes
4 answers

How do I convert a WPF size to physical pixels?

What's the best way to convert a WPF (resolution-independent) width and height to physical screen pixels? I'm showing WPF content in a WinForms Form (via ElementHost) and trying to work out some sizing logic. I've got it working fine when the OS is…
Joe White
  • 94,807
  • 60
  • 220
  • 330
42
votes
5 answers

Stop Firefox DPI Scaling (when Windows setting is at 125%)

I'm currently making a webpage and testing it in chrome works fine, but in Firefox - it is zoomed in. This is because my DPI in Windows is set to 125%, and Firefox detects this, and adjusts every webpage accordingly. However, my webpage is not meant…
Brugsen
  • 603
  • 1
  • 6
  • 12
42
votes
4 answers

How to include 10" and 7" layouts properly

Nexus 7: 7" 1280x800 Galaxy tab 10.1 10" 1280x800 I want my app to run on 7 and 10 inch tablets. As far as I know, I have to include these layout folders in my app: for 7 inch tablets layout-sw600dp layout-sw600dp-port for 10 inch…
berestom
  • 1,109
  • 2
  • 10
  • 9
38
votes
3 answers

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 control this? For all of you who have experience…
Sukhbir S. Dadwal
  • 463
  • 1
  • 8
  • 11
34
votes
5 answers

How to change resolution (DPI) of an image?

I have a JPEG picture with a DPI of 72. I want to change 72 dpi to 300 dpi. How could I change resolution of JPEG pictures using C#?
ulduz114
  • 1,150
  • 6
  • 21
  • 37
34
votes
3 answers

Why Nexus 6 density is 560 dpi?

How to prepare resources for Nexus 6? If I put images to xxxhdpi they will scale down and lose quality. I put images to xxhdpi they will scale up and lose quality. Why developers decided setup value 560dpi for density, if real density 493ppi is…
anber
  • 3,463
  • 6
  • 39
  • 68
30
votes
6 answers

How do dp, dip, dpi, ppi, pixels and inches relate?

I was reading dp, dip, px, sp measurements, but I still have some questions about dp/dpi vs ppi vs px vs inch. I am not able to compare them... is an inch the largest? They say 160 dpi means 160 pixels per one inch. Does that mean 1 inch contains…
Rebooting
  • 2,762
  • 11
  • 47
  • 70
30
votes
9 answers

Disable DPI awareness for WPF application

Good day! I've been working on a WPF app for some time now (as a learning experience and oh boy it was a learning experience) and it's finally ready for release. Release means installing it on my HTPC where it will be used to browse my movie…
Johan Verbelen
  • 349
  • 1
  • 4
  • 7
29
votes
7 answers

How can I change Windows 10 Display Scaling Programmatically using C#

I'm trying to find a way to change the Display Scaling in Windows 10 Programmatically using C#. Let me also say that, I'm not trying to create a application that automatically forces the users screen to change resolution/scaling. Its just a tool for…
Futile32
  • 834
  • 2
  • 8
  • 15
29
votes
5 answers

What dpi resolution is used for an iPhone App?

I am working on a template for an iPhone App and was wondering what dpi resolution is used for it ? 300 or 72 ? I am not sure and I hope somebody can answer me that question.
Farid Batoch
28
votes
9 answers

Pixel to Centimeter?

I just want to know if the pixel unit is something that doesn't change, and if we can convert from pixels to let's say centimeters ?
Nassif Bourguig
  • 755
  • 1
  • 10
  • 10
27
votes
5 answers

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 says Android will require images set in dpi. I…
Ruchira
  • 935
  • 2
  • 15
  • 30
27
votes
1 answer

Supporting DPI and Default Font Changes

So I'm trying to figure out how the Form's AutoScaleMode property can possibly help to support a system with a font or DPI that is different from my work development machine. From the SDK: AutoScaleMode Enumeration public enum AutoScaleMode None …
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
25
votes
4 answers

Getting actual screen dpi/ppi under windows

I would like to get the actual screen dpi/ppi, not the dpi setting used for font in C++. I tried with the following codes: Version 1, reports 72 dpi, which is wrong. SetProcessDPIAware(); //true HDC screen = GetDC(NULL); double hSize =…
Andy Li
  • 5,894
  • 6
  • 37
  • 47
1
2
3
80 81