Android: How pixel density is calculate? -


today saw nexus 7 specifications.
has resolution of 1200 x 1920 pixels , physical screen size of 4.49 x 7.87 inches.

the specs says has 323 density. how did calculated number?

i been trying this:

1200 / 4.49 = 267.26 

or this:

1920 / 7.87 = 243.96 

but doesn't me anywhere. getting density value from?

this use when calculating "on paper":

http://labs.rampinteractive.co.uk/android_dp_px_calculator/

to calculate ppi:

ppi=(squareroot(h^2+w^2))/inches

ppi=(squareroot(1920*1920+1200*1200))/7

ppi=(squareroot(3686400+1440000))/7

ppi=(squareroot(5126400))/7

ppi=2264.155~/7

ppi=323.45~

can't think of clearer way explain you.

oim~


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -