ESRI.ArcGIS.ADF.Web
ToMapPoint(Point,Envelope,Int32,Int32) Method
See Also  Send Feedback
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.

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

© 2011 All Rights Reserved.