WgsExtensionsCanvasToPtvMercator Method (MapView, UIElement, IEnumerablePoint) |
Conversion of multiple pixel coordinates into a PTV-internal Mercator format.
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 IEnumerable<Point> CanvasToPtvMercator(
this MapView mapView,
UIElement canvas,
IEnumerable<Point> points
)
<ExtensionAttribute>
Public Shared Function CanvasToPtvMercator (
mapView As MapView,
canvas As UIElement,
points As IEnumerable(Of Point)
) As IEnumerable(Of Point)
public:
[ExtensionAttribute]
static IEnumerable<Point>^ CanvasToPtvMercator(
MapView^ mapView,
UIElement^ canvas,
IEnumerable<Point>^ points
)
[<ExtensionAttribute>]
static member CanvasToPtvMercator :
mapView : MapView *
canvas : UIElement *
points : IEnumerable<Point> -> IEnumerable<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. - points
- Type: System.Collections.GenericIEnumerablePoint
Multiple points (enumeration) containing pixel coordinates.
Return Value
Type:
IEnumerablePointMultiple points (enumeration) containing PTV-internal Mercator 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