Questions tagged [resolution]
Questions about image resolution.
resolution
2,413
questions
961
votes
35
answers
894k
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 ...
201
votes
34
answers
336k
views
How do I get monitor resolution in Python?
What is the simplest way to get monitor resolution (preferably in a tuple)?
165
votes
12
answers
272k
views
How can I get screen resolution in java?
How can one get the screen resolution (width x height) in pixels?
I am using a JFrame and the java swing methods.
141
votes
4
answers
114k
views
How to calculate dp from pixels in android programmatically [duplicate]
I want to calculate dp from px programmatically. How to do it?
I get resolution from:
DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(...
141
votes
4
answers
140k
views
Image resolution for new iPhone 6 and 6+, @3x support added?
I have looked on few articles and discussion like one here and Here about image resolutions that new iPhones will use @3x images for display. Is it true?
So does it mean we will have to keep three ...
124
votes
23
answers
351k
views
Recommended website resolution (width and height)? [closed]
Is there any standard on common website resolution?
We are targeting newer monitors, perhaps at least 1280px wide, but the height may varies, and each browser may have different toolbar heights too.
...
99
votes
7
answers
67k
views
How to simulate a higher resolution screen? [closed]
Is there any way for the browser to test my websites in resolutions that are higher than my screens?
E.g: I have a 1440 x 900 screen, and I want to test the website in 1920 x 1200, 1920 x 1080, etc.
97
votes
10
answers
132k
views
How can I get the resolution (width and height) for a video file from a linux command line?
I've been digging through the mplayer/mencoder and ffmpeg documentation and I can't seem to come up with anything. I'm not especially picky as to the output format as I can use a regular expression to ...
86
votes
6
answers
81k
views
Why do I need @1x, @2x and @3x iOS images?
Why do we need these 3 particular image types?
If I have a button on my app with a background image say, 50 pixels x 50 pixels, why do I need 3 versions of this image? What's stopping me from just ...
61
votes
23
answers
352k
views
Getting the screen resolution using PHP
I need to find the screen resolution of a users screen who visits my website?
61
votes
4
answers
28k
views
Do I need 14 different layouts to support all Android devices?
I'm really feeling confused. From the docs at developer.android.com, it seems in order to keep my images scaled correctly (aspect ratio too) across all current Android devices I need all these ...
56
votes
8
answers
56k
views
Is there a way to determine android physical screen height in cm or inches?
I need to know exactly how big the screen is on the device in real units of length so I can calculate the acceleration due to gravity in pixels per millisecond.
Is there a method somewhere in the ...
53
votes
3
answers
26k
views
How do you see / show a git merge conflict resolution that was done, given a merge commit SHA1?
When you resolve a conflict, then stage the changes, then do a git diff, it shows you two columns of +'s and -'s, one for "ours" and one for "theirs". Given a merge commit in a repo's git history, ...
52
votes
15
answers
79k
views
Increasing camera capture resolution in OpenCV
In my C/C++ program, I'm using OpenCV to capture images from my webcam. The camera (Logitech QuickCam IM) can capture at resolutions 320x240, 640x480 and 1280x960. But, for some strange reason, OpenCV ...
51
votes
8
answers
113k
views
How to detect the current screen resolution?
How do I from Winapi (in C or C++) detect the current screen resolution?
Some background:
I want to start a new OpenGL fullscreen window, but want it open with the same horizontal and vertical size ...
46
votes
6
answers
67k
views
Changing DPI scaling size of display make Qt application's font size get rendered bigger
I have created some GUI application using Qt. My GUI application contains controls like push button and radio button. When I run the application, buttons and fonts inside button looks normal. When I ...
42
votes
9
answers
14k
views
C++ overload resolution [duplicate]
Given the following example, why do I have to explicitly use the statement b->A::DoSomething() rather than just b->DoSomething()?
Shouldn't the compiler's overload resolution figure out which ...
41
votes
6
answers
43k
views
What is the resolution of an image in ImageNet dataset?
Does anyone know the resolution of an image in the ImageNet dataset?
I'm sorry, but I couldn't find it on their website or in any of the papers.
40
votes
3
answers
47k
views
Find Number and resolution to all monitors
How would one poll windows to see what monitors are attached and what resolution they are running at?
39
votes
5
answers
143k
views
Hide div if screen is smaller than a certain width
I want to hide a floating div if the user screen is < 1024px as it will overlay with my blog content area. I found this jQuery on the net but I am not sure how to use it.
$(document).ready(...
39
votes
3
answers
2k
views
C# Method Resolution, long vs int
class foo
{
public void bar(int i) { ... };
public void bar(long i) { ... };
}
foo.bar(10);
I would expect this code to give me some error, or at least an warning, but not so...
What version of ...
37
votes
4
answers
35k
views
Android: Canvas.drawText() text size on different screen resolutions
For my Android game I have some calls to Canvas.drawText().
For testing, I use the standard font size which seems to be working fine.
However, when I bump up the resolution to a higher density, the ...
37
votes
4
answers
32k
views
How to find Intent source in Android? [duplicate]
Possible Duplicate:
Android: How to get the sender of an Intent?
Is there a way in android to find the source activity which fires a INTENT (in the destination activity)?
The scenario is I have ...
36
votes
11
answers
88k
views
og:image Open Graph Warnings image size
I check my url because facebook don't use the image that I set on og:image
url fb check
My image is: 639x649px 486kb
But fb use this picture: 300x443px 97kb
The warning said:
og:image should be ...
36
votes
6
answers
64k
views
How to change the resolution of a raster layer in R
I have several high resolution raster layers in R that I am working with. The level of detail is excessive for some of the analyses I am running, so I would like to speed things up by reducing the ...
36
votes
6
answers
45k
views
Programmatically get screen size in Mac OS X
I am able to return the screen size using:
- (void) getScreenResolution {
NSArray *screenArray = [NSScreen screens];
NSScreen *mainScreen = [NSScreen mainScreen];
unsigned screenCount = [...
35
votes
7
answers
21k
views
How do you compare DateTime objects using a specified tolerance in C#?
By default C# compares DateTime objects to the 100ns tick. However, my database returns DateTime values to the nearest millisecond. What's the best way to compare two DateTime objects in C# using a ...
34
votes
7
answers
120k
views
Python OpenCV access webcam maximum resolution
I am trying to acquire images from my webcam using a python code that imports OpenCV. The code is the following:
import sys
sys.path.append("C:\\opencv\\build\\python\\2.7")
import cv2
import cv2.cv ...
34
votes
5
answers
26k
views
CamcorderProfile.QUALITY_HIGH resolution produces green flickering video
I haven't found any explanation for this so far. Basically I have a video recording class which works splendidly when setVideoSize() is set to 720 x 480 on my Samsung Galaxy S2.
I want it to record ...
33
votes
8
answers
101k
views
Is there a standard webpage resolution for mobile phones?
Most designers use 1024x768 as a baseline for website development. That allows them to use css grid systems like 960 & blueprint to easily outline content. Is there similar baseline resolution ...
31
votes
5
answers
148k
views
jQuery Screen Resolution Height Adjustment
In order to better balance out a page I am working on I would like to find a way to increase the top margin of a DIV depending on the screen resolution. What is my best way to set these dimensions ...
30
votes
3
answers
39k
views
What resolution should my Android splash screens be?
I'm creating a splash screen that will display while my Android application loads. I'd like to create it at the correct size so Android won't auto-scale it up or down to fit the screen. (It's a ...
29
votes
4
answers
48k
views
How mdpi, hdpi, xhdpi folder works?
Extract from Android Developer Guide link above:
320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).
480dp: a tweener tablet like the Streak (480x800 mdpi).
600dp: a ...
29
votes
3
answers
40k
views
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 ...
27
votes
5
answers
23k
views
Fonts are blurry / big in Android Studio
is there any way I can change the resolution of Android Studio? I looked in Settings->Appearance but it seems like there is no official way to change it. I have a 1920x1080 Display and the whole ...
27
votes
8
answers
25k
views
Screen Resolution Problem In WPF?
I'm gonna detect the resolution with the following code in WPF :
double height = System.Windows.SystemParameters.PrimaryScreenHeight;
double width = System.Windows.SystemParameters.PrimaryScreenWidth;...
27
votes
2
answers
12k
views
Is possible use drawable-mdpi-fr, drawable-hdpi-fr, drawable-ldpi-fr, for localization with different resolutions
I want to use different images for different localisations. However, I have images for all resolutions and for all languages. Is there any way to do this?
26
votes
3
answers
51k
views
How to get the resolution of a monitor in Pygame?
I'm just wondering if it is possible for me to get the resolution of a monitor in Pygame and then use these dimensions to create a window so that launching the program detects the monitor resolution ...
26
votes
7
answers
115k
views
Set background image according to screen resolution
I would like to be able to change my webpage background image according to the screen resolution the user uses so:
if screen resolution is greater than or equal to 1200*600 then background = ...
26
votes
5
answers
51k
views
Determining Camera Resolution (i.e. Megapixels) Programmatically in Android
I am developing an Android application in 2.2, which uses Camera.
Now Can anyone tell me that "Is it possible to programmatically determine the Camera Resolution in Megapixels in Android"
24
votes
3
answers
17k
views
How to get width and height of iPhone/iPad using MonoTouch?
I need to get the width and height of iPhone/iPad using MonoTouch.
How to get programmatically?
24
votes
7
answers
109k
views
FFmpeg - Change resolution of the video with aspect ratio
all.
How to change resolution of the video with aspect ratio with FFmpeg?
There are options
http://manpages.ubuntu.com/manpages/oneiric/man1/ffmpeg.1.html
-s size
Set frame size. The ...
24
votes
3
answers
13k
views
Why does iPhone 6 use @2x image assets?
iPhone 6 plus uses @3x image assets, but iPhone 6 uses @2x image assets - just like iPhone 4 and iPhone 5 (Image resolution for new iPhone 6 and 6+, @3x support added?).
iPhone 5, iPhone 5C and ...
23
votes
3
answers
15k
views
gravatar highest resolution
I show a gravatr image of users in my site. How can I know the best highest resolution to use? e.g. which parameter "s" should be.
https://secure.gravatar.com/avatar/?s=250
of course it depends in ...
23
votes
4
answers
32k
views
Programmatically change screen resolution?
Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP? For example to change from 1024x768 with one monitor to 1280x1024 on two monitors? ...
23
votes
1
answer
6k
views
FFMPEG : Add a fixed size image on a video, regardless of the video width & height (resolution)
This is my code that adds an image to videos, running via PHP:
exec('ffmpeg -i input.mp4 -i logo.png -filter_complex
"[0:v][1:v] overlay=10:10" -pix_fmt yuv420p -c:a copy output.mp4');
It works ...
22
votes
3
answers
103k
views
Programmatically change image resolution
I have calculated that if I want my generated image to be A4 size @ 600dpi for print purpose, it needs to be 7016x4961px @ 72dpi. So, I generate it programmatically, then test it in Photoshop and it ...
21
votes
2
answers
24k
views
XNA - Get Current Screen Resolution
Is it possible to get the current desktop screen resolution?
I have a few minor settings in my XNA game one of which is screen resolution. What I want to do is blank out a screen resolution option if ...
21
votes
1
answer
12k
views
Improve quality of Wand conversion
I convert files of different formats (JPEG, PNG, TIFF, PDF) to JPEG using Wand, a ctypes-based ImageMagick binding for Python. The resulting files are very low-quality. If there is text in original ...
20
votes
2
answers
8k
views
Do you have to call glViewport every time you bind a frame buffer with a different resolution?
I have a program with about 3 framebuffers of varying sizes. I initialise them at the start, give them the appropriate render target and change the viewport size for each one.
I originally thought ...