View.CrsToPixel Methods
Transforms a position in the coordinate reference system of the View to a drawable position.
Overload List
Name | Description | |
---|---|---|
Public method | CrsToPixel(Point point) | Transforms specified Point expressing coordinates in the Crs, to the corresponding drawable coordinates. |
Public method | CrsToPixel(System.Double x, System.Double y) | Transforms the specified coordinates, expressed in the Crs, to the corresponding drawable coordinates. |
CrsToPixel(Point point)
Transforms specified Point expressing coordinates in the Crs, to the corresponding drawable coordinates.Syntax
public Point CrsToPixel (
Point point
)
Parameters
A point with coordinates expressed in the coordinate reference system of the view.
Return Value
The drawable coordinates where the point would be presented.
Remarks
This method transforms coordinates expressed in the Crs to drawable coordinates (in pixels), rounded to the nearest integers. The given View.Crs coordinates need not be inside the drawable.
CrsToPixel(System.Double x, System.Double y)
Transforms the specified coordinates, expressed in the Crs, to the corresponding drawable coordinates.Syntax
public Point CrsToPixel (
System.Double x,
System.Double y
)
Parameters
The X coordinate (easting or longitude), in the coordinate reference system of the view.
The Y coordinate (northing or latitude), in the coordinate reference system of the view.
Return Value
The drawable coordinates where the point would be presented.
Remarks
This method transforms coordinates expressed in the Crs to drawable coordinates (in pixels), rounded to the nearest integers. The given View.Crs coordinates need not be inside the drawable.
Platforms
Windows, Linux, Android