This document is archived and information here might be outdated.  Recommended version.

IMapServer2.ComputeScale Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServer2 Interface > IMapServer2.ComputeScale Method
ArcGIS Developer Help

IMapServer2.ComputeScale Method

Computes the scale of the specified map, at the given map extent, for an image with the given size.

[Visual Basic .NET]
Public Function ComputeScale ( _
    ByVal mapDesc As IMapDescription, _
    ByVal mapDisplay As IImageDisplay _
) As Double
public double ComputeScale (
    IMapDescription mapDesc,
    IImageDisplay mapDisplay
HRESULT ComputeScale(
  IMapDescription* mapDesc,
  IImageDisplay* mapDisplay
mapDesc [in]

mapDesc is a parameter of type IMapDescription* mapDisplay [in]
mapDisplay is a parameter of type IImageDisplay*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMapServer2 Interface