Questions tagged [pixel-density]

Pixel density, or resolution, is the measurement of pixels per inch/centimeter of devices such as computer displays, smartphones, scanners, or image sensors.

Pixel density is the number of pixels a display can fit into a fixed distance. This measurement is calculated in pixels per inch (PPI) or pixels per centimeter (PPCM). The higher the pixel density, the crisper the output of the display appears. The human eye can not discern granular detail when it is higher than 300 PPI.

Common Pixel Densities

  • 72/96 PPI - Common for standard definition web graphics
  • 150 PPI - Offset Print Quality
  • 220+ PPI - Retina Displays
  • 300 PPI - Large Scale Print Quality
  • 557 PPI - Samsung Galaxy S6
64 questions
1
vote
0 answers

Unity 3d | Gravity scale value varies for different device resolutions. So gameobject not reaching to specified height for all devices

I am developing a 2D game where i throw a gameobject vertically upword direction using AddForce api. Now as the gameobject start moving upword due to force applied, i keep on increasing its gravity scale from 1 to specific value (say…
1
vote
1 answer

What are correct asset sizes for Android 8 status bar icons (Android gives conflicting info)

Should an Android status bar icon be sized at 24dp or 18dp? I see conflicting advice/examples: 24dp from Android API guidelines 24dp from Android icon templates pack the actual mdpi PSD file is 24px, which @1x is 24dp 18dp measured from a…
1
vote
1 answer

finding a proper dp that same size in all devices

As you know if you put dimensions and size in dp it will almost same in all devices. I say almost because of bucket range. for example in hdpi that presnets with 240dpi a device with 200dpi and 279dpi all use hdpi resource and dimens folder and same…
Mahdi
  • 6,139
  • 9
  • 57
  • 109
1
vote
1 answer

How can I set the density of images loaded with Picasso?

The images I load with Picasso seem to use a density value of DENSITY_NONE. What do I have to change to make Picasso call .setDensity(160) on the loaded images before they are displayed?
Grzegorz Adam Hankiewicz
  • 7,349
  • 1
  • 36
  • 78
1
vote
2 answers

what's the point to have multiple densities android

I was wondering, as the title mention, in an android application, what's the point to create graphics for multiple densities, while you could only have the highest density (xxxhdpi), and then the system would resize the image to the right size on…
user509981
1
vote
1 answer

How to create proper size drawable on android as it was designed on px image - knowing dimensions,density, etc.?

I would really know how to create proper drawables for android mobile phones. According to lessons from udacity "Android Design for Developers". Aim: create identical size drawable on screen as it was designed on image. What do I know: screens…
deadfish
  • 11,996
  • 12
  • 87
  • 136
1
vote
1 answer

CSS resolution calculations

I am currently working on a responsive project. I have the layout sorted out and now I am implementing the media queries. I understand the concept of width, device-width, device-pixel-ratio, and the difference between physical pixels and CSS pixels.…
Vikrant m
  • 25
  • 6
1
vote
3 answers

how to create a 3d spatial density map?

I have a time-dependent system of varying number of particles (~100k particles). In fact, each particle represents an interaction in a 3D space with a particular strength. Thus, each particle has (X,Y,Z;w) which is the coordinate plus a weight…
deeep
  • 33
  • 5
1
vote
1 answer

Restrict Android app to very specific resolutions and screen sizes

In my app I plan to support only few specific screen sizes and resolutions, here they are: How can I restrict my app to be able to be installed only on these screens? Is it something in the AndroidManifest.xml, or Developer Console, or both?
1
vote
2 answers

How to know the display's size of an aplicattion in android?

I'm developing an Android application, but I'm a noob using it. I already know that I can make use of the .XML file to design the application's interface, but, by large amount of views that I have to configure inside of the .XML file, I decided to…
0
votes
0 answers

Reducing the pixels-per-inch (PPI) of an image results in same file size

Summary I'm attempting to use ImageMagick to produce copies of an image with a range different pixel densities to increase the user-experience of my front-end projects. Problem After running the script, the respective PPI is successfully converted…
0
votes
1 answer

What is the recommended way to convert between pixels and points in SwiftUI?

I want to display a QR code in SwiftUI. The code is generated as a CGImage via CIImage. I don't want to scale it to the full size available because if the scaling factor isn't an integer there may be fuzzy boundaries between the QR modules. So I…
realh
  • 962
  • 2
  • 7
  • 22
0
votes
1 answer

Density group for tablet of size 10.5" and 11"

I know it's been asked before but I cant find a solution to my problem Both devices have the same size 2650 * 1600 px One with size 10.5" has 287 ppi The other size 11" has 276 ppi As I understand these tow are of the same density group, but the…
user3698465
  • 185
  • 1
  • 10
0
votes
1 answer

Android menu icons scaling issue

I am using the onCreateOptionsMenu method to create a toolbar with icons in the MainActivity of my app. I am testing on different screen sizes and pixel densities with Android Studio's emulator. The documentation states, "Based on the density of…
0
votes
1 answer

Not getting exact value from float calculations in a java code

Basically I am changing layout ratios. I have to change current layout ratio to another ratio. There is a code snippet I am using in my application. import java.util.*; public class Big{ public static void main(String args[]){ float b=(new…
Rupesh Kumar
  • 41
  • 1
  • 8