Type: Integer
Returns the normal number of horizontal dots per inch (DPI) of the system's display.
Internet 6.0 and has the ability to automatically adjust the scale of a display to try and compensate for size differences in text when viewed at higher DPI settings. Some computer systems that provide DPI settings greater than 96 DPI ship with IE configured to provide this automatic adjustment.
This automatic scaling feature may have adverse effects on the format and display of a web page. In addition, higher DPI settings even without automatic scaling can have similar adverse effects.
The DisplayXDPIActual and DisplayXDPILogical properties are useful in detecting this situation so you can dynamically change the format and size of your page layout, or so that you can alert the user to adjust their settings for a better experience.
Tip: You can calculate the vertical scale factor, if any, that IE is using by using this formula:
scaleFactor = DisplayXDPIActual / DisplayXDPILogical
Tip: See the DisplayXDPIActual Property (.NET) for an example that demonstrates how to test these properties.
Note: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.
Special notes for this property:
This property is only available for IE 6.0 and higher on Windows
When IE is automatically adjusting the scale of the screen to account for higher DPI settings, the value of DisplayXDPILogical will not match the value of DisplayXDPIActual.
Note that on most systems there is no difference between horizontal and vertical DPI. The normal DPI on most systems is 96.
If the user’s JavaScript is disabled this property will not be available.
See Also:
DisplayXDPIActual Property (.NET)