Questions tagged [dpi]

DPI stands for Dots Per Inch

Dots per inch (DPI, or dpi) is a measure of spatial printing or video dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

1209 questions
0
votes
1 answer

Same image size (physically) on different screens

Possible Duplicate: How to detect page zoom level in all modern browsers? I'm building a website with an image that needs to have the same physical size on every device or browser. Let's say the image perfectly fits on an iPhone5 screen, i.e.…
Jokaero
  • 1
  • 1
  • 2
0
votes
2 answers

Converting pixels to dpi for mdpi and hdpi screens

I am using this code that I have found on another thread which is working fine on mdpi screens: public static float convertDpToPixel(float dp,Context context){ Resources resources = context.getResources(); DisplayMetrics metrics =…
Jonno
  • 1,542
  • 3
  • 22
  • 39
0
votes
0 answers

Android: View in lower resolution screen (ldpi) truncated

I'm implementing my view and have been testing with xdpi hdpi and tvdpi mdpi, and they all look fine. However, a quick test in a ldpi device, it seems like parts of my views are being truncated. Why is that? My contents are truncated both…
rycfung
  • 1,325
  • 12
  • 12
0
votes
1 answer

How the handset manufacturer set the DPI on android OS?

If I am the handset manufacturer and I have the handset with 5.0 inch and 1920*1080 resolution , how I set the DPI ? I can calculate the generalized density like this: Actual_density = root(1920*1920+1080*1080)/5.0 = 440.5 dpi And then get the…
Jerikc XIONG
  • 3,517
  • 5
  • 42
  • 71
0
votes
2 answers

How to calculate the smallestWidth on android?

Resolution is 1920*1080 and the actual size is 5 inch. How to calculate the smallestWidth on android ? Which the res folder should be used on the handset,including drawable,values and layout folder?
Jerikc XIONG
  • 3,517
  • 5
  • 42
  • 71
0
votes
1 answer

How to measure the physical distance between two points on a screen (Android)?

I'm building an Android app where the user has to touch a circle on the screen, and I need to record how far away the user's touch was from the center of the circle. Thing is, I want to record the physical distance, not the pixel distance, because…
XåpplI'-I0llwlg'I -
  • 21,649
  • 28
  • 102
  • 151
0
votes
1 answer

How to change DPI of part of a WPF/Silverlight application?

I want my application to have a zoomable element which will allow the XAML elements to be viewed at 25%, 50%, 100%, 200% etc, I just need to alter the DPI of the XAML but am unsure how to do this on just part of the XAML (i.e. the element to…
RoguePlanetoid
  • 4,516
  • 7
  • 47
  • 64
0
votes
1 answer

PDF 'advanced' information extraction

I'm trying to write what more or less accounts for a PDF soft proof. There are a few infos that I would like to extract, but have no clue how to. What I need to extract: Bleed: I got this somewhat working with pyPdf, given …
phryk
  • 105
  • 1
  • 4
0
votes
1 answer

Flex 4.6 Mobile App List item height issue

Is there any way to dynamically change the padding between each row in an itemRenderer List for Mobile Air Apps (iOS)? At the moment I'm using conditional CSS to detect what resolution the device is and change the font size in the list accordingly.…
ChiWaiLi
  • 95
  • 1
  • 2
  • 8
0
votes
2 answers

How to generate 300dpi QR code using PHP QR Code Library?

How to generate 300dpi QR code using PHP QR Code Library ? They have size ranged from 1-40, with maximum size 984px (72dpi). My client wants me to work on a program that can generate printable version, which requires 300dpi and at least 5 inches of…
Raptor
  • 53,206
  • 45
  • 230
  • 366
0
votes
2 answers

Why doesn't the form title text appear in a FixedToolWindow when windows is set to 120 dpi

In the display screen on windows 7, I set the computer to 125% text size (120dpi). But all of my FormBorderStyle.FixedToolWindow style forms have no title text in their title bar (this.Text property of the form) when they normally do at 96dpi. I'm…
Isaac Bolinger
  • 7,328
  • 11
  • 52
  • 90
0
votes
1 answer

Pixel 2 CM convert Javascript

i must convert px to cm with javascript oneCM= 37.795276 is it true everytime? What is the DPI's role here? and if is variable CM on the monitor (factor DPI) how can we find DPI's
user1404602
  • 55
  • 1
  • 6
0
votes
2 answers

Map gps distance to a jpg image

I am trying to develop an Android application to display a user location on a jpg image of a map which user insert. Using gps coordinates of two positions I calculate the distance between two positions. I need to set that distance on the map jpg…
0
votes
1 answer

Are dpi and pixel in Photoshop are just the same?

This one bothers me, I'm still new on Android UI designing. Are dpi and pixel in Photoshop are just the same? Like if I will create a xhdpi with 320dpi, the 320dpi is just the same settings on 320 pixels/inch resolution? Because when I designed for…
marx
  • 13
  • 1
  • 4
0
votes
3 answers

Supporting android resolution screens: Understanding

I didn't really understand the DP measure, even though I've read about it 2 times. Let's say I have an image it's resolution is: 400 X 400 PX. And I want to put it as background image to my app. and I'm putting the same image on the different…
idish
  • 3,190
  • 12
  • 53
  • 85