DP, PX, DPI, PPI, density

Source: Internet
Author: User

Concept:

DPI (dots per inch): points per inch, initially used to measure the density of dots per inch on the print, and how many points the printer plays in an inch. The smaller the DPI value, the less fine.

PPI (Pixels per inch): The number of pixels per inch, when the concept of DPI is used on an electronic screen, it should be called the PPI.

For developers, DPI is Ppi,ppi dpi, which is collectively referred to as screen density.

PX (Pixel): units of pixels, can be understood as the actual length of units, just like meters, centimeters.

DP (device independent pixels): This is the unit of length in the Android system, which is the DIP (unit independent pixel).

Set a screen pixel density of da,b screen pixel density for db,a screen width of WA px,b screen for the WB px,a screen of La px length in the B screen should be scaled to lb px.

(la/da)/WA = (lb/db)/WB

DP, PX, DPI, PPI, density

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.