[web] trouble finding screen DPI

Started by
2 comments, last by Kylotan 15 years, 8 months ago
For a web applicition I'm making in flex, I'm trying to find the screen DPI, but I'm having trouble finding a way. I've already tried to things: -using the Capabilities.screenDPI variable always returns 72, regardless of the actual DPI of the screen -using the &#106avascript screen.deviceXDPI or screen.logicalXDPI and passing a variable to flex only works in IE. I've been googling for an answer forever and can't find one, hopefully someone here can help me.
Advertisement
You can't rely too heavily on the value returned, because the user may not calibrate their monitor to use the full screen area anyway. What do you need to use this value for?
I want something on the screen to appear as it would printed, but I want to specify the dimensions in inches, not pixels.
If this is client side, you can specify inches in your style sheet.

This topic is closed to new replies.

Advertisement