GM_UtilityConvertCoordPixelToGround 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:
GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax public static GM_Error_t32 ConvertCoordPixelToGround(
int aPixelX,
int aPixelY,
out double aGroundX,
out double aGroundY,
GM_Rectangle_t aWorldBounds,
GM_PixelRect_t aPixelRect
)
Public Shared Function ConvertCoordPixelToGround (
aPixelX As Integer,
aPixelY As Integer,
<OutAttribute> ByRef aGroundX As Double,
<OutAttribute> ByRef aGroundY As Double,
aWorldBounds As GM_Rectangle_t,
aPixelRect As GM_PixelRect_t
) As GM_Error_t32
public:
static GM_Error_t32 ConvertCoordPixelToGround(
int aPixelX,
int aPixelY,
[OutAttribute] double% aGroundX,
[OutAttribute] double% aGroundY,
GM_Rectangle_t^ aWorldBounds,
GM_PixelRect_t^ aPixelRect
)
Parameters
- aPixelX
- Type: SystemInt32
IN: X Coord in pixel space - aPixelY
- Type: SystemInt32
IN: Y Coord in pixel space - aGroundX
- Type: SystemDouble
OUT: X Coord in current projection - aGroundY
- Type: SystemDouble
OUT: Y Coord in current projection - aWorldBounds
- Type: GlobalMapper.TypesGM_Rectangle_t
IN: World bounds to convert from or NULL for last drawn. - aPixelRect
- Type: GlobalMapper.TypesGM_PixelRect_t
IN: Pixel bounds to convert from or NULL for last drawn.
Return Value
Type:
GM_Error_t32A GM Error Code
See Also