This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMxdServerQuery Interface > IMxdServerQuery.ComputeScale Method (ArcObjects .NET 10.5 SDK) |
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