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




pixelX
X-coordinate of the screen-point (pixel-point) to convert.
pixelY
Y-coordinate of the screen-point (pixel-point) to convert.
extent
The map envelope on which to base the conversion. Normally the current MapView extent.
imageWidth
The width of the map in pixels.
imageHeight
The height of the map in pixels.
Converts screen x- and y-coordinates to a Point in Map coordinates.

Syntax

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

Parameters

pixelX
X-coordinate of the screen-point (pixel-point) to convert.
pixelY
Y-coordinate of the screen-point (pixel-point) to convert.
extent
The map envelope on which to base the conversion. Normally the current MapView extent.
imageWidth
The width of the map in pixels.
imageHeight
The height of the map in pixels.

Return Value

Point in Map coordinates.

Remarks

This method converts a location in screen pixel coordinates to map coordinates.

This is a static (Shared) method, so that it is used without creating an instance of Point.

See Also

© 2010 All Rights Reserved.