Questions tagged [resolution-independence]
38 questions
85
votes
13 answers
Is it bad to work with pixels in CSS?
Is it bad in terms of compatibility to use pixel numbers in CSS instead of percentages? How about lower resolutions? Is it okay to work with them in ranges of 1-100?

loya
- 749
- 1
- 5
- 4
26
votes
4 answers
Scale an entire WPF window
I have a WPF application that I am going to be demoing to an audience on a large, high-resolution projector, and I am worried that the application will be too small to see from afar.
Is there a simple way to make the ENTIRE application bigger (like…

Hank
- 8,289
- 12
- 47
- 57
24
votes
4 answers
tips on developing resolution independent application
Is it a good practice to find the workarea measurement and set some properties in code so that it could be bound to Control's margin or height/Width properties in xaml?
I do this so that my window would resize according to the available…

Amsakanna
- 12,254
- 8
- 46
- 58
11
votes
1 answer
Scaling entire screen in XNA
Using XNA, I'm trying to make an adventure game engine that lets you make games that look like they fell out of the early 90s, like Day of the Tentacle and Sam & Max Hit the Road. Thus, I want the game to actually run at 320x240 (I know, it should…

Adam Rezich
- 3,122
- 6
- 31
- 39
10
votes
2 answers
Is the ViewBox the best thing to use to achieve resolution independence in WPF?
I'm developing an application that needs to be resolution independent. The application will always be full screen so I have to design my UI so that the monitor resolution will not impair the use of the application. I've been spending a good amount…

Dan Vogel
- 3,858
- 7
- 41
- 57
10
votes
1 answer
Distinguish between panning and normal screen modes in code - Windows
I am writing a full-screen 3D game and I have created a menu in which the user may select the screen resolution to match his hardware capacity.
I am enumerating all the available screen modes with EnumDisplaySettingsExA like…

Bill Kotsias
- 3,258
- 6
- 33
- 60
5
votes
7 answers
HTML/CSS: What should I use to define image height/width to make it resolution independent?
I've read all over the Internet that I should not define fonts (or anything) with absolute pixel height/width/size and instead, use EM ... so that on higher resolution displays, my web site can scale appropriately.
However, what do I use to define…

Tedy
- 61
- 1
- 2
- 4
4
votes
3 answers
Resolution independent or monitor size independent WPF apps
How could I develop resolution-independent and monitor size independent WPF apps? Monitor size independent means here suppose I develop a WPF app on a 15-inch monitor and when I will view that app on a 17-inch monitor then often UI looks different…

Thomas
- 33,544
- 126
- 357
- 626
3
votes
2 answers
Is it possible to rescale a Qt GUI without rewriting the code?
I'm in charge of a large-ish (100+KLOC) Qt app with dozens of windows and hundreds of different types of widgets in it.
Today, a user asked me if there was any way to make some of the app's larger windows fit better on his 13" laptop's display.
Of…

Jeremy Friesner
- 70,199
- 15
- 131
- 234
3
votes
2 answers
Which screen size / density combinations should I support for bitmap background image?
I'm writing an application where I will need a number of full screen bitmap backgrounds. Based on my naive reading of Supporting Multiple Screens in the Android documentation, to cover all my bases I should probably have 16 versions of each bitmap:…

Hilton Campbell
- 6,065
- 3
- 47
- 79
2
votes
2 answers
How to obtain 'Ctrl +' behavior on a browser using Javascript?
I opened the Stack Overflow website on my 47 inch LCD TV (resolution 1920 * 1080, 16:9) and found the text and website right in the middle of a lot of whitespace. The text was unreadable because Stack Overflow, like many other websites, is optimized…

Marvin Danig
- 3,738
- 6
- 39
- 71
2
votes
1 answer
Ensuring that application is independent of users' screen resolution
Is there any easy way to run an application created in C# on Visual Studio 2005 on any different PC, regardless of its screen resolution?

mahesh
- 1,370
- 9
- 36
- 61
2
votes
1 answer
How do I display this image in Android?
How do I display an image with the following configuration in Android?
Retain original aspect ratio (the image can be scaled, but not stretched)
Fill the width of the parent
Aligned to the bottom of the parent
The following does not…

hpique
- 119,096
- 131
- 338
- 476
2
votes
2 answers
C# Winform size reduced in reduced resolution
I have a pretty simple c# application that uses .net framework 2.0. In my development machine (which is set to 1024x768) the app appears fine. The client runs the application in 1024x600 netbook, and the form seems like it's reduced in height.…

Ben
- 706
- 1
- 10
- 20
2
votes
1 answer
How to position text correctly in LibGDX?
Currently I am using the following calculation to calculate the font scale resolution independent:
fontScale = ( Gdx.graphics.getDensity() / BaseDensity ) * (( (float)Gdx.graphics.getWidth() / (float)BaseResolutionWidth ) /…

Z0q
- 1,689
- 3
- 28
- 57