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




pixelPoint
Screen point to convert.
extent
Envelope of the map.
imageWidth
Width of the map image.
imageHeight
Height of the map image.
Converts a System.Drawing.Point in screen coordinates to a Point in Map coordinates.

Syntax

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

Parameters

pixelPoint
Screen point to convert.
extent
Envelope of the map.
imageWidth
Width of the map image.
imageHeight
Height of the map image.

Return Value

Point in Map coordinates.

Remarks

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

See Also

© 2010 All Rights Reserved.