Returns an ArcGIS envelope (IEnvelope) for a set of screen coordinates.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim mapServer As ESRI.ArcGIS.Carto.IMapServer
Dim mapDescription As ESRI.ArcGIS.Carto.IMapDescription
Dim imageDisplay As ESRI.ArcGIS.Carto.IImageDisplay
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim value As ESRI.ArcGIS.Geometry.IEnvelope
value = Converter.ToMapEnvelope(context, mapServer, mapDescription, imageDisplay, left, top, right, bottom) |
Parameters
- context
- The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
- mapServer
- The ArcGIS map server (T:ESRI.ArcGIS.Carto.IMapServer).
- mapDescription
- The map description (T:ESRI.ArcGIS.Carto.IMapDescription) when working with a local ArcGIS connection.
- imageDisplay
- T:ESRI.ArcGIS.Carto.IImageDisplay with properties of the map display.
- left
- Minimum X in screen coordinates.
- top
- Minimum Y in screen coordinates.
- right
- Maximum X in screen coordinates.
- bottom
- Maximum Y in screen coordinates.
Return Value
An ArcGIS envelope (
IEnvelope).
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also