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


IMxdServerQuery.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 > IMxdServerQuery Interface > IMxdServerQuery.ComputeScale Method
ArcGIS Developer Help

IMxdServerQuery.ComputeScale Method

Computes the scale of the specified map, at the given map extent, for an image with the given width, specified in pixels.

[Visual Basic .NET]
Public Function ComputeScale ( _
    ByVal MapName As String, _
    ByVal imageWidthPixels As Integer, _
    ByVal Extent As IEnvelope _
) As Double
[C#]
public double ComputeScale (
    string MapName,
    int imageWidthPixels,
    IEnvelope Extent
);
[C++]
HRESULT ComputeScale(
  BSTR MapName,
  Long imageWidthPixels,
  IEnvelope* Extent
);
[C++]
Parameters
MapName [in]

MapName is a parameter of type BSTR imageWidthPixels [in]
imageWidthPixels is a parameter of type int Extent [in]
Extent is a parameter of type IEnvelope*

Product Availability

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

See Also

IMxdServerQuery Interface