Questions tagged [screen-resolution]

The number of distinct pixels in each dimension that the screen can display, usually quoted as width × height with the units in pixels.

It is usually quoted as width × height, with the units in pixels. The screen resolution signifies the number of dots (pixels) on the entire screen. For example, a 640-by-480 pixel screen is capable of displaying 640 distinct dots on each of 480 lines, or about 300,000 pixels. This translates into different dpi measurements depending on the size of the screen. For example, a 15-inch VGA monitor (640x480) displays about 50 dots per inch.

1404 questions
48
votes
6 answers

Strategies for Handling Multiple Screen Resolutions and Aspect Ratios in Web Development

Back in the day, 800 x 600 was the screen resolution to design for - and maybe 640 x 480. Then along came 1024 x 768, etc, etc, etc. But then it gets worse: now we have not only different resolutions but also different aspect ratios. What…
Adrian K
  • 9,880
  • 3
  • 33
  • 59
44
votes
6 answers

Multiple screen resolutions/aspect ratios (games)

EDIT: Thanks for all your answers and comments. After thinking about it i would rephrase the core of the question to: "How to determine and limit the minimum resolution/ratio my game is able to run on". Because imo either the game becomes unplayable…
mibollma
  • 14,959
  • 6
  • 52
  • 69
37
votes
2 answers

How to get screen resolution in C++?

Possible Duplicate: How to get the Monitor Screen Resolution from an hWnd? Is there a way to get the screen resolution in C++? I have searched MSDN but with no luck. The closest thing I found was ChangeDisplaySettingsEx() but that doesn't seem to…
Nate Koppenhaver
  • 1,676
  • 3
  • 21
  • 31
35
votes
6 answers

How to detect in jquery if screen resolution changes?

How can I make it so that each time when user changes the screen resolution size [not the browser window], the page perform a function?
Safran Ali
  • 4,477
  • 9
  • 40
  • 57
30
votes
4 answers

Difference between "screen size" and "screen density" in Android?

I have a few questions: What is the screen size? What is the screen density? What is a difference between screen size and screen density? How I can support different densities and different screen sizes in Android? I have already read the…
K Guru
  • 1,292
  • 2
  • 17
  • 36
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
3 answers

What is today's most popular screen resolution?

Is there a place that displays statistics in such a manner that I can rely on? e.g. Google/Microsoft homepage screen size statistics? An international statistics organization that checks multiple websites to come up with a more accurate number?
odedta
  • 2,430
  • 4
  • 24
  • 51
28
votes
6 answers

Scale element proportional to Background Cover with jQuery

I have a tricky question: I have a fullsize background over the site I'm working on. Now I want to attach a div to a certain position on the image and also that the div scales in the same way the my background image with the "background-size:…
28
votes
8 answers

How to get screen resolution of your android device..?

Can i get resolution of android phone..? if yes then how..? it will really helpful for me.. Thank you..
Rikin Thakkar
  • 1,268
  • 3
  • 13
  • 27
27
votes
1 answer

Android Convert Px to Dp (Video Aspect Ratio)

Possible Duplicate: converting pixels to dp in android I'm trying to convert pixels to dp. What is the formula? Lets convert 640 and 480 into dp. The docs say this The conversion of dp units to screen pixels is simple: px = dp * (dpi /…
spentak
  • 4,627
  • 15
  • 62
  • 90
27
votes
8 answers

How to accommodate for the iPhone 4 screen resolution?

According to Apple, the iPhone 4 has a new and better screen resolution: 3.5-inch (diagonal) widescreen Multi-Touch display 960-by-640-pixel resolution at 326 ppi This little detail affects our apps in a heavy way. Most of the demo apps on the…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
25
votes
4 answers

How do I convert Twips to Pixels in .NET?

I'm working on a migration project in which a database actually stores display sizes in twips. Since I can't use twips to assign sizes to WPF or Winforms controls, I was wondering if .NET has a conversion method usable at runtime?
Chris Pfohl
  • 18,220
  • 9
  • 68
  • 111
25
votes
6 answers

How to get the Monitor Screen Resolution from a hWnd?

How to get the monitor screen resolution from a hWnd? I am using a hWnd because the window could be located on any one of multiple monitors. i.e. the hWnd top/left coordinate is on a Monitor that has a Screen Resolution of 800 x 600. I program in a…
Gerhard Weiss
  • 9,343
  • 18
  • 65
  • 67
21
votes
3 answers

what is display's logical resolution?

I encountered this concept: device pixel ration, some said it is the ratio between physical pixels and logical pixels. For example iPhone has: Physical resolution: 960 x 640 Logical resolution: 480 x 320 so does it mean that the height of each…
Blake
  • 7,367
  • 19
  • 54
  • 80
20
votes
3 answers

screen.width and screen.availwidth difference in javascript

What is the difference between screen.width and screen.availwidth in JavaScript? On my system both are the same!
SilverLight
  • 19,668
  • 65
  • 192
  • 300
1
2
3
93 94