ESRI.ArcGIS.ADF.IMS
ScreenDpi Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto Namespace > InitializationParameters Class : ScreenDpi Property




Gets or sets the screen Dpi.

Syntax

Visual Basic (Declaration) 
Public Property ScreenDpi As UShort
Visual Basic (Usage)Copy Code
Dim instance As InitializationParameters
Dim value As UShort
 
instance.ScreenDpi = value
 
value = instance.ScreenDpi
C# 
public ushort ScreenDpi {get; set;}

Example

For an example, see the InitializationParameters overview.

Remarks

This is the dots per inch (dpi) assumed as the screen resolution. Used for calculating the correct scale thresholds for scale dependent elements such as ScaleDependentRenderer, Layer, and AcetateElement.

The default is 96 dots (or pixels) per inch. Note that with the higher resolutions of screens common today, this figure is probably incorrect. In this case, scale thresholds, such as when a layer becomes visible as users zoom in or out, will not occur at precisely the scale set in a MinScale or MaxScale property. This is most noticeable when the computer image is projected onto a large screen, when scales are obviously distorted from the nominal values.

Tip: on Windows computers, the screen DPI can be adjusted with the Display Properties dialog, accessible by right-clicking on the desktop. On the Settings tab, click the Advanced button. In the advanced dialog, in the General tab, the drop-down list for DPI setting allows setting a custom DPI for the screen by comparison with a physical ruler. Note that setting to a non-default number may cause text and layout issues with some programs, especially Web pages.

See Also

© 2010 All Rights Reserved.