ESRI.ArcGIS.ADF.IMS
Dpi Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.IMS.Administration Namespace > Environment Class : Dpi Property




Gets or sets the screen dpi of the environment. Used for determining scale dependencies.

Syntax

Visual Basic (Declaration) 
Public Property Dpi As Integer
Visual Basic (Usage)Copy Code
Dim instance As Environment
Dim value As Integer
 
instance.Dpi = value
 
value = instance.Dpi
C# 
public int Dpi {get; set;}

Remarks

Dpi is used for calculating scale thresholds for map elements which have MinScale or MaxScale properties set. If Dpi is incorrect for the user's display, then map elements will not observe scale thresholds correctly. See ImageDescriptor.Dpi for a discussion of DPI settings and map display.

The Dpi setting for Environment of a MapService is read-only. It is used by default for map requests. The Dpi may be set with the ImageDescriptor.Dpi property, which will override the default setting.

Requirements

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

See Also

© 2011 All Rights Reserved.