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




screenRectangle
Rectangle to convert
extent
Map envelope.
imageWidth
Width of map in pixels.
imageHeight
Height of map in pixels.
Converts screen rectangle into a map envelope.

Syntax

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

Parameters

screenRectangle
Rectangle to convert
extent
Map envelope.
imageWidth
Width of map in pixels.
imageHeight
Height of map in pixels.

Return Value

The converted 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.