lyborko2
lyborko2

Reputation: 13

How to get pixel-per-inch value of the screen in XNA?

Does anybody know the answer to the question above?

Upvotes: 1

Views: 215

Answers (1)

Dervall
Dervall

Reputation: 5744

I do not think you can get this value. You have no idea what monitor is connected and while there might be drivers that actually know this type it might be a default driver. Either way, this information is not accessible to you.

Also, there might be duplicated displays, TV-output, an overhead projector and whatnot. So, the situation is more complex than the normal situation of a known monitor connected to your rendering window or fullscreen window

Upvotes: 1

Related Questions