WgsExtensionsPtvMercatorToCanvas Method |
Conversion of a PTV-internal Mercator coordinate into pixel coordinates.
Namespace:
Ptv.XServer.Controls.Map.Tools
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static Point PtvMercatorToCanvas(
this MapView mapView,
UIElement canvas,
Point mercatorPoint
)
<ExtensionAttribute>
Public Shared Function PtvMercatorToCanvas (
mapView As MapView,
canvas As UIElement,
mercatorPoint As Point
) As Point
public:
[ExtensionAttribute]
static Point PtvMercatorToCanvas(
MapView^ mapView,
UIElement^ canvas,
Point mercatorPoint
)
[<ExtensionAttribute>]
static member PtvMercatorToCanvas :
mapView : MapView *
canvas : UIElement *
mercatorPoint : Point -> Point
Parameters
- mapView
- Type: Ptv.XServer.Controls.MapMapView
Map object needed for pixel (resolution) information. - canvas
- Type: System.WindowsUIElement
Canvas object needed for the current scale information. - mercatorPoint
- Type: System.WindowsPoint
Point containing PTV-internal Mercator coordinates.
Return Value
Type:
PointPoint containing pixel coordinates.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MapView. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also