ArcGIS API for WPF - Library Reference
GetScale(Double,SpatialReference,Double) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Geometry Namespace > Geometry Class > GetScale Method : GetScale(Double,SpatialReference,Double) Method

unitsPerPixel
Units per pixel (resolution).
spatialReference
Spatial reference.
pixelsPerInch
Pixels per inch (dpi).
Gets the scale.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetScale( _
   ByVal unitsPerPixel As Double, _
   ByVal spatialReference As SpatialReference, _
   Optional ByVal pixelsPerInch As Double _
) As Double
C# 
public static double GetScale( 
   double unitsPerPixel,
   SpatialReference spatialReference,
   double pixelsPerInch
)

Parameters

unitsPerPixel
Units per pixel (resolution).
spatialReference
Spatial reference.
pixelsPerInch
Pixels per inch (dpi).

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.