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


IMxdServerQuery.ComputeScale Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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,
  double* Scale
);
[C++]

Parameters MapName [in] MapName is a parameter of type BSTR imageWidthPixels [in] imageWidthPixels is a parameter of type Long Extent [in]
Extent is a parameter of type IEnvelope Scale [out, retval] Scale is a parameter of type double

Product Availability

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

See Also

IMxdServerQuery Interface