GM_Utility .ConvertCoordGroundToPixel Method |
Convert a coordinate between the current projection and a pixel coordinate.
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 ConvertCoordGroundToPixel(
double aGroundX,
double aGroundY,
out int aPixelX,
out int aPixelY,
GM_Rectangle_t aWorldBounds,
GM_PixelRect_t aPixelRect
)
Parameters
- aGroundX
-
Type:
System
.
Double
IN: X Coord in current projection - aGroundY
-
Type:
System
.
Double
IN: Y Coord in current projection - aPixelX
-
Type:
System
.
Int32
OUT: X Coord in pixel space - aPixelY
-
Type:
System
.
Int32
OUT: Y Coord in pixel space - aWorldBounds
-
Type:
GlobalMapper
.
GM_Rectangle_t
IN: World bounds to convert from or NULL for last drawn. - aPixelRect
-
Type:
GlobalMapper
.
GM_PixelRect_t
IN: Pixel bounds to convert from or NULL for last drawn. GM_PixelRect_t*
Return Value
Type: GM_Error_t32A GM Error Code
