ESRI.ArcGIS.ADF.Web
ToMapEnvelope(Int32,Int32,Int32,Int32,Envelope,Int32,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.Geometry Namespace > Envelope Class > ToMapEnvelope Method : ToMapEnvelope(Int32,Int32,Int32,Int32,Envelope,Int32,Int32) Method




pixelLeft
Left x-coordinate of the screen rectangle.
pixelBottom
Bottom y-coordinate of the screen rectangle.
pixelRight
Right x-coordinate of the screen rectangle.
pixelTop
Top y-coordinate of the screen rectangle.
extent
Extent of the map (in map coordinates)
imageWidth
Width of the map in pixels.
imageHeight
Height of the map in pixels.
Converts screen rectangle into a map envelope.

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute()>
Public Overloads Shared Function ToMapEnvelope( _
   ByVal pixelLeft As Integer, _
   ByVal pixelBottom As Integer, _
   ByVal pixelRight As Integer, _
   ByVal pixelTop As Integer, _
   ByVal extent As Envelope, _
   ByVal imageWidth As Integer, _
   ByVal imageHeight As Integer _
) As Envelope
Visual Basic (Usage)Copy Code
Dim pixelLeft As Integer
Dim pixelBottom As Integer
Dim pixelRight As Integer
Dim pixelTop As Integer
Dim extent As Envelope
Dim imageWidth As Integer
Dim imageHeight As Integer
Dim value As Envelope
 
value = Envelope.ToMapEnvelope(pixelLeft, pixelBottom, pixelRight, pixelTop, extent, imageWidth, imageHeight)
C# 
[ObsoleteAttribute()]
public static Envelope ToMapEnvelope( 
   int pixelLeft,
   int pixelBottom,
   int pixelRight,
   int pixelTop,
   Envelope extent,
   int imageWidth,
   int imageHeight
)

Parameters

pixelLeft
Left x-coordinate of the screen rectangle.
pixelBottom
Bottom y-coordinate of the screen rectangle.
pixelRight
Right x-coordinate of the screen rectangle.
pixelTop
Top y-coordinate of the screen rectangle.
extent
Extent of the map (in map coordinates)
imageWidth
Width of the map in pixels.
imageHeight
Height of the map in pixels.

Return Value

The map envelope.

Remarks

This method is deprecated because it does not account for possible rotation of the Map. Use ToMapEnvelope(Rectangle, TransformationParams) instead.

See Also

© 2010 All Rights Reserved.