resolution

What is the ipads resolution minus the address bar in the browser!?

What is the browser resolution? I have been searching for a while on google and somehow I can't find it! ...

PrintDocument_PrintPage & Graphics.DrawImage size in inches

I'm trying to print an image sized 2x2 inches. Created a conversion function (inches to pixels) based on the resolution. However, the result is far from 2x2 inch, printing produces image that barely fits the whole sheet! Am I'm doing something wrong? Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.D...

iPhone 4 resolution difficulty - @2x naming technique not working for button image

Hi. I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is [email protected]. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice the size (ie twice as tall, twice as wide) as the lower resolution image, yet the offi...

iPhone version user agents

Are there different user agents for each version of the iPhone? ...

Why does printer changes resolution? User, background, what?

Hi, I am runing a .bat file from a php using exec on a Windwos php server, where php is run using fast-cgi (and nginx). The command line to run this script is pclose(popen("start / ". $cmd, "r")); Where $cmd is somethign like "mybatfile.bat 45 1" When I run the batch file manually it runs a python program to read a database, ...

Getting Monitor resolution in Python on Ubuntu

Is there a equatable bit of code to GetSystemMetrics in win32api, for Ubuntu? I need to get the monitors width and height in pixels. ...

UIImage Faux-High-Res Effect using Interpolation Algorithms

Hello, I'm programming a few picture viewers for the iPad and the problem that I always have is that unless you use a really big resolution image source, when the user zooms, the image will get pixelated. I was thinking that maybe some kind of upscaling filter could be applied to the image when zoomed. Like the ones here http://en.wiki...

Dialog too large for netbook's 800 x 480 resolution

I've designed a winforms dialog that is too large for a netbook's 800 x 480 resolution. How can I fix that the dialog is shown properly. Is there a simple way that avoids a complete redesign? Here's a screenshot of my problem: http://img689.imageshack.us/img689/2449/allgemeina.jpg ...

My vector sprite renders in different locations in simulator and device

I'm implementing a subclass of UIView that displays a gauge dial with a sprite for the indicator. It has angle property that I can vary to make the needle point to different angles. It works, but on the same values for the position of the needle make it show up in different locations on the phone and the simulator. It's an iPhone 4, s...

Screen resolution java

How one can get the screen resolution where a swing jFrame app is running? ...

Runtime resolution of asp.net webforms routes

I am trying to create dynamic routes using .net 4.0 WebForms. Imagine I need mappings like these: mySite/Canada -> country.aspx mySite/Canada/Ontario/ -> locality.aspx mySite/Canada/Ontario/Toronto -> town.aspx mySite/Canada/population -> country.aspx mySite/Canada/history -> country.aspx mySite/Canada/Ontario/weather -> locality.aspx ...

Scaling custom draw code for different iOS resolutions

I am struggling to get my custom drawing code to render at the proper scale for all iOS devices, i.e., older iPhones, those with retina displays and the iPad. I have a subclass of UIView that has a custom class that displays a vector graphic. It has a scale property that I can set. I do the scaling in initWithCoder when the UIView loa...

Flex/AIR layout for presentation tool (resize logic, aspect ratios etc.)

I'm developing a presentation tool for AIR (to be used together with, or as a replacement to, PowerPoint) but I'm quite a newcomer to flex layouting. As you can see from the image, the presenter can open various apps from the main window. Each of these apps open up in new windows which have different visual characteristics; some use the...

.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 = DateTime.FromOADate(oadate); int compare = DateTime.Compare(a, b); //Compare is not ...

Android - QVGA screen hides some pixels

Hi all, I have a problem with missing pixels on QVGA screen on Android (all versions including 2.2). The original problem was with LinearLayout and margin="1px". It was OK on the normal screen but on QVGA there was sometimes no space between GUI controls, like if margin="0px" and not 1px. So I tried to make the example simple (to be sur...

How can I get the Windows system time with millisecond resolution?

Hello all. How can I get the Windows system time with millisecond resolution? If the above is not possible, then how can I get the operating system start time? I would like to use this value together with timeGetTime() in order to compute a system time with millisecond resolution. Thank you in advance. ...

Get available X11 video modes without extensions

I've been searching around and can't find a solution for this. The official NVIDIA Tegra 2 Linux SDK (L4T) doesn't include both XRandR or the VideoMode X11 extension for querying available video modes. My next thought was to parse the log file for video modes. Of course most of the time it's at /var/log/Xorg.0.log but I'd rather not al...

how to detect screen resolution changes dynamically in adobe AIR

Hi, Screen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime. is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when m...

SDL - (Hardware) Pixel Scaling

In my SDL game, I'd like to retain a fixed resolution of the game area, both for gameplay and performance reasons. What I wanted to do was to have a small resolution (e.g. 320 * 240), and when resizing the window / switching to fullscreen mode letting SDL / the graphics card scale each pixel. However the problems that occur are: The ...

How to calculate screen resolution change

I have an application that is on a mobile device. I am moving resolutions of my app from 240W x 320L to 640W X 480L. I have a bunch of columns that have their width in pixels (say 55 for example). I need to convert this to the new resolution. "Easy", I thought 640/240 = 2 2/3. So I just take 55 * 2.6666667 and that is my new width. ...