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

Printing XPS document with image. Different image size when set different dpi

I printing XPS document with images, that contains QR-codes. Image creating sample here: Image image = CreatePresentation(qrCode); image.Height = 200; image.Width = 200; image.HorizontalAlignment = HorizontalAlignment.Center; …
Frank59
  • 3,141
  • 4
  • 31
  • 53
0
votes
2 answers

Configuration qualifiers for 320x480 Android (Galaxy Ace)

I have an application that I am struggling to make look right on a Galaxy Ace 320*480 mdpi. Using drawable-sw320dp-mdpi seems to effect most of the other screens such as the Galaxy S2 (480*800 hpdi) even though I have a drawable-sw480dp etc which…
Jonno
  • 1,542
  • 3
  • 22
  • 39
0
votes
1 answer

Centering admob ad with Air/actionscript 3

I have an Air/As3 app with a stage size of 1024x600 px auto scaled to fit a screen of 1280x720 px. When I request an admob ad (using an ANE) the ad width size reported is 320 (Standard Banner) but this size is based on DPI not in real pixel and I…
Delcasda
  • 371
  • 4
  • 13
0
votes
2 answers

Layout for different size screens (Android)

I'm working on an app, it looks great on 7" devices (Nexus and Dell streak 7). I created the images from different densities, so it looks good. However, when I try to run the app on my phone (Samsung Galaxy 2) or Tablet 10" it doesn't look good at…
Mike
  • 1,302
  • 6
  • 23
  • 43
0
votes
1 answer

"Bitmap too large" when changing my background DPI to 240

My background always look bad in my app on my smartphone, so I searched around and found THIS article, so I created 3 copies of my background (120,160,240) DPI, but now I get this error: 03-16 11:41:13.984: W/OpenGLRenderer(19236): Bitmap too…
Omar
  • 7,835
  • 14
  • 62
  • 108
0
votes
1 answer

Mobile web design for various devices

I'm new to developing sites for mobile devices and looking for some insight from those that know more than I do. Since starting this project I have learned that there are a lot of differences between the iphone and the Android, which I believe is…
0
votes
1 answer

Bad dpi on Nexus 7

I have incorrect UI on Nexus 7. I have 10" tablet with mdpi, and my UI is OK. But on 7" nexus 7 all images and texts look very big. I coped images from mdpi to tvdpi. and now, it is OK for me. But, is it correct to have 2 folders with the same…
Tim
  • 1,606
  • 2
  • 20
  • 32
0
votes
2 answers

Differences dpi for Android and Samsung Ace mobile

Specifications: Samsung Galaxy Ace: LCD TFT / 3.5 inch / 480 x 320 pixels / 164 dpi. but: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); float V_dpi = metrics.densityDpi; V_dpi = 160 but…
0
votes
2 answers

Viewport, target-densitydpi, pixelratio behaviour in chrome/mozilla on galaxy tab/nexus 7

<'meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, target-densitydpi=..., user-scalable=0" />' tested on different devices and browsers. Both tablets have 1280*800px physical resolution. The galaxy tab 10" the…
J-S
  • 425
  • 3
  • 17
0
votes
0 answers

Scaling an Image with the Image tiff and x/y resolution

I've got an issue with scaling the tiff images to their original size if just the DPI resolution of the x and y axes are given. Could you please point me to a How-To or explain it? x resolution: 203 DPI y resolution: 98 DPI The tiff image is a…
synner
  • 105
  • 7
0
votes
0 answers

Creating consistent dimensions betwen Android Browser and Desktop?

I have a web page which works very well on a regular computer, and handles resizing down very well / you can re-size the window to any size you like, and the app is still useful. You can also zoom in with Ctrl+ if you like, and the app's layout will…
700 Software
  • 85,281
  • 83
  • 234
  • 341
0
votes
1 answer

Best practices for exporting images for the web - DPI/PPI

How should I be preparing images for the web? Each device seems to have a different resolution. I've always exported images at 72PPI. Is that even the proper number these days? Do some people use 96PPI? Which is better for non "retina" images? Most…
puddletown
  • 215
  • 1
  • 3
  • 5
0
votes
0 answers

c#/WPF - getting DPI - matrix returning 1

I'm writing an application using C#/WPF and I'm trying to get DPI of a screen. I'm trying to do it this way: Window MainWindow = Application.Current.MainWindow; PresentationSource MainWindowPresentationSource =…
krajol
  • 818
  • 3
  • 13
  • 34
0
votes
1 answer

Android tablet compatibility

I've got different dimen values/images for ldpi/mdpi/hdpi/xhdpi which work fine on phones. But when a low res tablet is running my app it goes to the mdpi values. Which means a big tablet screen gets the lower dimen values (and images) and…
Aviran
  • 5,160
  • 7
  • 44
  • 76
0
votes
2 answers

Android does not honor ldpi qualifier

I want to distinguish layout/drawables for the following two devices: 1) 7" hdpi 2) 7" ldpi So I am using the following qualified directories: 1) layout-sw600dp-hdpi / drawable-sw600dp-hdpi 2) layout-sw600dp-ldpi / drawable-sw600dp-ldpi But when I…
Andrej
  • 161
  • 2
  • 14