-
Senior Member
Converting DPI (pixels per inch) to pixels per cm (PPCM)
Hi guys, in my project I need know how many pixels one cm is on the screen.
I get the DPI (pixels per inch) in flash using flash.system.Capabilities.screenDPI, for my screen I get 72.
I try converting to pixels per cm (PPCM) by dividing on 2,54.
72/2,54=28,35 PPCM.
However if I create a square that is 28 pixels on the screen and measure that with a real world ruler, it is approx. 0,7 cm.
So something is wrong here, also if I create a box on the screen that is 72 pixels, is measures with a ruler about 1,8 cm, not 2,54 cm (1 inch).
What am I doing wrong? Is the DPI resolution reported by flash false???
-
Senior Member
Seems like the user needs to calibrate after a real world ruler to get it right.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|