WgsExtensionsCanvasToWgs Method |
Conversion of a pixel coordinate into WGS 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 Point CanvasToWgs(
this MapView mapView,
UIElement canvas,
Point point
)
<ExtensionAttribute>
Public Shared Function CanvasToWgs (
mapView As MapView,
canvas As UIElement,
point As Point
) As Point
public:
[ExtensionAttribute]
static Point CanvasToWgs(
MapView^ mapView,
UIElement^ canvas,
Point point
)
[<ExtensionAttribute>]
static member CanvasToWgs :
mapView : MapView *
canvas : UIElement *
point : 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. - point
- Type: System.WindowsPoint
Point containing pixel coordinates.
Return Value
Type:
PointPoint containing WGS 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