Questions tagged [resolution]

Questions about image resolution.

Image resolution is an umbrella term that describes the detail an image holds. Higher resolution means more image detail.

Reference

Wikipedia

2378 questions
13
votes
4 answers

choose which constructor in c++

I am practicing C++ by building my own version of vector, named "Vector". I have two constructors among others, fill constructor and range constructor. Their declarations look like following: template class Vector { public: //…
seemuch
  • 633
  • 3
  • 8
  • 19
13
votes
3 answers

Android different drawable screen resolutions

I'm a bit confused as to what resolutions I should be saving my images in for the different drawable folders. Is there a general formula for it? For example,if I want an image to take up 10% of the height and the full width of the screen, roughly…
CoffeeCrisp
  • 253
  • 3
  • 6
  • 19
13
votes
4 answers

Android: How to get the real screen size of the device?

I have tried different ways to get the screen size of the device, but it always returned me the wrong size (791x480 instead of 854x480). It might be due to the navigation bar. My device is currently running JellyBean 4.1.1. I tried: Display display…
Trois
  • 133
  • 1
  • 1
  • 6
13
votes
2 answers

Reducing PDF file size using Ghostscript on Linux didn't work

I have about 50-60 pdf files (images) that are 1.5MB large each. Now I don't want to have such large pdf files in my thesis as that would make downloading, reading and printing a pain in the rear. So I tried using ghostscript to do the following: gs…
dearN
  • 1,256
  • 4
  • 19
  • 40
13
votes
7 answers

Capturing a time in milliseconds

The following piece of code is used to print the time in the logs: #define PRINTTIME() struct tm * tmptime; time_t tmpGetTime; time(&tmpGetTime); tmptime = localtime(&tmpGetTime); cout << tmptime->tm_mday << "/" <tm_mon+1 << "/" <<…
ronan
  • 4,492
  • 13
  • 47
  • 67
12
votes
4 answers

Plots with good resolution for printing and screen display

I was making my plots using dev.new(width=5.8, height=3) par(mfrow=c(1,3),mar=c(1,1,2,1),oma=c(4,1,2,0),mgp=c(3, 0.5, 0)) plot(...) and coping and pasting them into Microsoft Word. They look really good in Word (I tried different widths until I…
sbg
  • 1,772
  • 8
  • 27
  • 45
12
votes
2 answers

C# WPF fit application depending on monitor size after maximize/minimize after moving between monitors

I have two monitors: Screen 1: which is secondary screen with 1920x1080 Screen 2: which is primary screen with 1600x900 Screen 1 is larger then Screen 2. When I open my application in Screen 2, and then move it from screen 2 to screen 1 and try to…
Zakk
  • 758
  • 3
  • 11
  • 20
12
votes
1 answer

Magnification problems of Java Apps under Windows 10

I am using Windows 10 Pro 64bit. My monitor (32inch) has a native resolution of 3820 * 2160 pixels. As soon when I use Java based applications I have problems with the magnification of fonts, buttons, etc. Often they are too small. I know I can…
len
  • 749
  • 1
  • 8
  • 23
12
votes
3 answers

.NET DateTime, different resolution when converting to and from OADate?

I'm converting a DateTime to OADate. I was expecting to get the exact same DateTime when converting the OADate back, but now it has only millisecond resolution, and is therefore different. var a = DateTime.UtcNow; double oadate = a.ToOADate(); var b…
Ezombort
  • 1,892
  • 3
  • 16
  • 20
12
votes
3 answers

C# WPF resolution independancy?

I am developing a map control in WPF with C#. I am using a canvas control e.g. 400 x 200 which is assigned a map area of e.g. 2,000m x 1,000m. The scale of the map would be: canvas_size_in_meters / real_size_in_meters. I want to find the…
Theo Zographos
12
votes
3 answers

Screen Resolution On A PhoneGap App

I'm writing a Phonegap (3.2) app, I take a HTML5 canvas, make it full screen and the whole app UI is on this canvas. Using a Samsung Galaxy S4 (Android 4.3) to test the app, the screen resolution of the app is only 360X640 and not 1080X1920 like I…
Miko Diko
  • 944
  • 1
  • 13
  • 33
12
votes
2 answers

How to resize window using XNA

I know this question has been asked many times before. However, all solutions I have found after over an hour of googling are essentially the same thing. Everyone says that in order to resize a window in XNA you simply add the following lines of…
user1494407
  • 121
  • 1
  • 1
  • 3
11
votes
3 answers

Why retina screen coordinate value is twice the value of pixel value

My computer is a Mac pro with a 13 inch retina screen. The screen resolution is 1280*800 (default). Using the following code: gWindow = glfwCreateWindow(800, 600, "OpenGL Tutorial", NULL, NULL); //case 1 glViewport(0,0,1600,1200); //case…
Jackson Zheng
  • 167
  • 1
  • 11
11
votes
5 answers

Android: Get the screen resolution / pixels as integer values

this is a really simple question on which I've found no answer :/ How can I quickly access the screen resolution (width, height) as integer values? I've tried this one, but it always shows zero on my emulator: DisplayMetrics dm = new…
poeschlorn
  • 12,230
  • 17
  • 54
  • 65
11
votes
2 answers

Screen Resolution not matching Screen.Bounds

I am seeing an interesting difference between the resolution that is set through Control Panel and the output of Screen.Bounds for my widescreen laptop. The screen is 15.5" and the resolution set through Control Panel is 1920x1080. However when I…
Isaac Levin
  • 2,809
  • 9
  • 49
  • 88