ESRI.ArcGIS.ADF.Web.DataSources.IMS
GetScale Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.IMS Namespace > MapFunctionality Class : GetScale Method




extent
Extent to use for calculating scale.
mapWidth
Width to use for calculating scale.
mapHeight
Height to use for calculating scale.
Calculates the map scale given the input map extent, height and width. Does not change the current map settings.

Syntax

Visual Basic (Declaration) 
Public Function GetScale( _
   ByVal extent As Envelope, _
   ByVal mapWidth As Integer, _
   ByVal mapHeight As Integer _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As MapFunctionality
Dim extent As Envelope
Dim mapWidth As Integer
Dim mapHeight As Integer
Dim value As Double
 
value = instance.GetScale(extent, mapWidth, mapHeight)
C# 
public double GetScale( 
   Envelope extent,
   int mapWidth,
   int mapHeight
)

Parameters

extent
Extent to use for calculating scale.
mapWidth
Width to use for calculating scale.
mapHeight
Height to use for calculating scale.

See Also

© 2010 All Rights Reserved.