ESRI.ArcGIS.ADF.IMS
Dpi Property
See Also 
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.

See Also

© 2010 All Rights Reserved.