![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
ScreenDpi Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > InitializationParameters Class : ScreenDpi Property |
Visual Basic (Declaration) | |
---|---|
Public Property ScreenDpi As UShort |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As InitializationParameters Dim value As UShort instance.ScreenDpi = value value = instance.ScreenDpi |
C# | |
---|---|
public ushort ScreenDpi {get; set;} |
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family