DisplayXDPILogical Property (.NET)

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:

 

See Also:

DisplayXDPIActual Property (.NET)

DisplayYDPIActual Property (.NET)

DisplayYDPILogical Property (.NET)