GM_Utility .ConvertCoordPixelToGroundWithOrientationDouble Method |
Convert a coordinate between pixel space and the current projection.
The conversion space can be either the last drawn coordinate space or
the caller can provide the coordinate space to work in.
Namespace:GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
Copy
public static GM_Error_t32 ConvertCoordPixelToGroundWithOrientationDouble(
double aPixelX,
double aPixelY,
out double aGroundX,
out double aGroundY,
GM_Rectangle_t aWorldBounds,
GM_PixelRect_t aPixelRect,
double aOrientation
)
Parameters
- aPixelX
-
Type:
System
.
Double
IN: X Coord in pixel space - aPixelY
-
Type:
System
.
Double
IN: Y Coord in pixel space - aGroundX
-
Type:
System
.
Double
OUT: X Coord in current projection - aGroundY
-
Type:
System
.
Double
OUT: Y Coord in current projection - aWorldBounds
-
Type:
GlobalMapper
.
GM_Rectangle_t
IN: World bounds to convert from or NULL for last drawn. GM_Rectangle_t* - aPixelRect
-
Type:
GlobalMapper
.
GM_PixelRect_t
IN: Pixel bounds to convert from or NULL for last drawn. GM_PixelRect_t* - aOrientation
-
Type:
System
.
Double
IN Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
Return Value
Type: GM_Error_t32A GM Error Code
