![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
ToMapPoint(Int32,Int32,Envelope,Int32,Int32) Method | |
See Also Send Feedback |
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.
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) | ![]() |
---|---|
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.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.
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