This document is archived and information here might be outdated.  Recommended version.


IDisplayTransformation.FromMapPoint Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

IDisplayTransformation.FromMapPoint Method

Calculates device coordinates corresponding to the map point.

[Visual Basic .NET]
Public Sub FromMapPoint ( _
    ByVal mapPoint As IPoint, _
    ByRef x As Integer, _
    ByRef y As Integer _
)
[C#]
public void FromMapPoint (
    IPoint mapPoint,
    ref int x,
    ref int y
);
[C++]
HRESULT FromMapPoint(
  IPoint* mapPoint,
  long* x,
  long* y
);
[C++]

Parameters mapPoint [in]
mapPoint is a parameter of type IPoint x [out] x is a parameter of type long y [out] y is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

FromMapPoint converts a point in map units to device coordinates.

See Also

IDisplayTransformation Interface

.NET Snippets

Get Screen Coordinates from Map Coordinates

.NET Related Topics

How to get screen coordinates from map coordinates