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

About Android resources and screen densities

I am developing android apps for years now, and I always struggled with the part of resizing all icons for all different screen densities. A couple of days ago I developed a utility for making this task easy and released it's source. But I received…
Sebastian Breit
  • 6,137
  • 1
  • 35
  • 53
0
votes
1 answer

Layout issue on bigger size screen device

I have 2 devices. For bigger screen size, my layout is having a white gap at the bottom. I designed Manisfest.xml as if it is screen configuration issue:
Umit Kaya
  • 5,771
  • 3
  • 38
  • 52
0
votes
3 answers

Using getDimension() on a Button/TextView always returns the same value

I'm making an app exclusively for android tablets and part of it has buttons dynamically created based on various news headlines. I have a single dimens.xml and I use the scaling factor from DisplayMetrics to make the sizes appropriate for different…
Adurnari
  • 9
  • 5
0
votes
2 answers

Using imageButton on an Android Layout

I want to use an image as a Button for an Android App, so I'm using an ImageButton. I want it to be pretty big so I understood the best way to do it is to configure the background of the image as the image I want. I'm setting the layout width and…
Javi
  • 889
  • 1
  • 16
  • 41
0
votes
1 answer

Screen size and dpi of bitmaps

I found two approximations of how developer should support bitmaps for different screen sizes. One is this: ldpi low density 120 dpi mdpi medium density 160 dpi hdpi high density 240 dpi xhdpi extra high density 320 dpi The other is…
Nazerke
  • 2,098
  • 7
  • 37
  • 57
0
votes
2 answers

Checking if vector object will be visible on print with given dpi and print size

I have file (*.shp used in GIS) that contains collection of polygons and maybe other vector objects (but polygons are most important for me). I need to remove non printable objects it. I don't know what criteria chose. I think removing objects with…
Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48
0
votes
3 answers

how can i get all dpi images from high resolution image android

I'am a new android developer. Our designer gave me some high resolution images for my app, but I known there are many devices (different screens) that support the android platform. My question is. How can I get all the dpi(hdpi-mdpi-ldpi-xx)…
user3011420
0
votes
1 answer

how can I set ImageView position in dpi fro android api 8?

my android app supports Android api 8 and I want to move an object x dpi to the left. how can I do it?
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
2 answers

Converting images to DPI (Dots per Inch) sizes

I am having a big trouble in resizing my images for Android image sizes, ldpi (120 dpi), mdpi(160 dpi), hdpi(240dpi), xhdpi(320 dpi) and nodpi using Photoshop, because I don't know how to convert my images to these size. As you know, Photoshop has…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
0
votes
2 answers

App crash on devices with ldpi screens

I created an app with images, and I added them via Android Icon Set wizard. The wizard created 3 versions for the images - mdpi, hdpi, xhdpi. I published my app on google play, and I got a crash reports from users that have ldpi screen. The…
nrofis
  • 8,975
  • 14
  • 58
  • 113
0
votes
2 answers

Printing with Java Swing

Using java swing, I want to print with accurate physical dimensions irrespective to user's printer and its resolution e.g: i want to print exactly 5cm x 3cm rectangle on paper. I don't know how to find the current dpi for selected printer (consider…
0
votes
1 answer

UIImage and NSImage report different image dimensions

I have the following code on Mac OSX to load an image: NSImage *baseImage = [NSImage imageNamed:[NSString stringWithCString:file.getFilename().c_str() encoding:NSUTF8StringEncoding]]; And the following code on iOS to load an image: UIImage*…
tjgrant
  • 438
  • 4
  • 18
0
votes
2 answers

AIR for iOS and displaying correct DPI images

How are you handling swapping the correct dpi bitmaps in your Adobe AIR base iOS apps? Do you have two versions of each image? Are you loading them in at runtime after detecting device resolution, or do you just embed them both and pick the…
Tom Auger
  • 19,421
  • 22
  • 81
  • 104
0
votes
1 answer

Flex mobile dpi scale

I read that screen dpi resolutions above 320 are not supported in Flex but according to this article it should be possible to create a custom implementation. So for test purposes I added these two lines with apache flex…
Robin
  • 1,240
  • 11
  • 16
0
votes
2 answers

Android screen sizes - containing folders

I'm trying to get my app Android app to support multiple screen sizes. I want it to only support phones(From 3 inches to 5.7), not Tablets. I have two test phones - Samsung Galaxy S2 and Nexus 4. I'm trying to 'play' with the different…
Tofira
  • 1,634
  • 4
  • 27
  • 39