resolution

Android: Get the screen resolution / pixels as integer values

Hi guys, 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 DisplayMetrics(); int width = dm.widthPixels / 2; In my case I want to dynamically create a ...

Printing at specific DPI/resolution

I'm currently developing a printing application and I'd like to print at high quality/resolution and I couldn't figure out how. I iterated printDocument.PrinterSettings.PrinterResolutions and got this results: Kind - Resolution.X - Resolution.Y High - -4 - -1 Medium - -3 - -1 Low - -2 - -1 Draft - -1 - -1 Is it possible to print at...

How to handle different screen resolution /screen size when developing a site ?

I would like to develop a site using jQuery that will work with all major browsers. I thought to start with a basic layout (a header, a couple of tabs with content, and footer). I wonder how should I create this layout to support different screen resolution, screen size, or window size. Should I work in pixels / points / percents when de...

Android: ImageView scales up source image

I can't seem to get my ImageView to display its source image in its original size. The ImageView looks like this: <ImageView android:id="@+id/Logo" android:src="@drawable/logo" android:layout_width="wrap_content" android:layout_height="wrap_content" > </ImageView> The source image is 140 pixels wide, yet on the Nexus One's ...

Scaling web front end

Hi there. I have a web layout originally designed for use with televisions (running from a device with an obscure browser). We detect which resolution the tv is then serve up the corresponding css file and images. These css sheets and images have been scaled specifically for the three resolutions we support - 576, 720 and 1080. Now I...

Scaling ratio of two different resolutions

I have two different resolutions, the original one is 567x756 (wXh), the one which I want to display is 768x1024 (wXh). How to find out the scaling ratio for these two resolutions? For example if the font size used in 567x756 resolution is 7 pts then whats the values I should multiply with the font size (7 pts) to display the text in 768...

Anyone able to get video resolution from the media content provider in Android?

I'm getting null back for the 'Video.Media.RESOLUTION' column on a Nexus One and Droid. Anyone been able to successfully query for the resolution of a video file in Android? ...

VB2008 Resolution-based resizing

Hi, Usually I am a web developer so this is probably a very novice question. I recently made an app in VB2008, but I developed it in a huge reso (1920x1200). The person that will be using it still uses 800x600 reso. Is there any simple way I can resize the entire interface to fit any resolution? I didn't really think about it at all whi...

Getting x/y coordinate of a UITouch...

HI, I have been trying to get the x/y coordinates from a touch on any iDevice. When getting the touch locations, everything looks ok if the touch is in the middle of the screen. But if I drag my finger to the bottom of the screen, I can only get a y coordinate of 1015. It should be getting to 1023. Same thing for dragging my finger to ...

Android different resolutions problem

Hi, I have 9 (vertical) radio buttons and they are all showing in default resolution (320x480) without problems . But when I'm trying in resolution for Htc Tattoo (240x320) the last radio button is hidden - there isn't space to be shown. How to make uniformly size ? ...

Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?

I'm writing my thesis in LaTeX, generating it with pdflatex. I have a large number of figures, many of which are bitmaps (as opposed to SVG) in PNG/JPEG format. I've generally created them to be fairly high resolution (say 1600x1200-ish) to ensure that whatever size they end up in the document, they'll be at least 300dpi when printed. A...

Will artwork created for iPhone 3G need to be updated for iPhone 4?

I've created artwork for apps on the iPhone 3G. I want to make these apps available on the iPhone 4. Does the new screen resolution on the iPhone 4 require re-sizing all the artwork? ...

Access User's Possible Screen Resolutions - C# 2010

Thanks in advance for your help. I am wondering how I might go about accessing the screen resolutions available on a user's PC. I would like to get a list of all available resolutions and also determine what the user is current running at. ...

Silverlight screen resolution

I want to figure out a way in my silverlight application to set the PageSize on my DataPager based on the maximized size of the window so that the scrollbars do not show when maximized. Any ideas? ...

Is there any reason an odd resolution for images/videos would not work as well as an even resolution?

It seems fairly random, but I wanted to cover my bases, has anyone heard this before? ...

java setting resolution and print size for an Image

I wrote a program that generates a BufferedImage to be displayed on the screen and then printed. Part of the image includes grid lines that are 1 pixel wide. That is, the line is 1 pixel, with about 10 pixels between lines. Because of screen resolution, the image is displayed much bigger than that, with several pixels for each line. I'd ...

will my apps work on iphone OS4?

Screen resolution has increased in iphone OS4. Since lot of UI stuff have hardcoded co-ordinates, will my app run properly on OS4? I still haven't got Snow Leopard, so cant test run the simulator for OS4. ...

Is it possible to detect DPI in iPhone OS, or Android?

I'm doing some research on making a game that will be able to scale its graphical resources to suit the DPI of whatever device it's on. In order to do this, I would like to be able to query the DPI of the device, to appropriately scale the assets. It's a 2D game, and the art style suits arbitrary scaling quite well. example of what I ...

How to control multiple function for one object? (How to make readable code for multiple resolution?)

I wanna refactoring my code. Now, this function is very mass cause it modified and modified several years to support multiple resolutions & multiple concept of UI design. So, one function for display has over then 10K lines. It need to be refactoring. At first, I've concern about seperate functions for each resolution and UI design typ...

How to render a full resolution image with WebView in Android?

The problem: I want to use a WebView to enable dynamic loading of ads in my app. I'm currently running on a HDPI device, and images width a width of 480px are clipped/scrolled. If I use images with a size of 320px, they are zoomed in and rendered at too low a resolution. The content of the loaded WebView url is a simple web page with j...