GM_ConvertCoordGroundToPixelWithOrientationDouble

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.

Note: The only time that you should need to call this function is if you want to do a coordinate conversion in a different orientation than what has been set globally with GM_SetOrientation .

Syntax

C++
Copy
GM_Error_t32 __stdcall GM_ConvertCoordGroundToPixelWithOrientationDouble
( 
double                  aGroundX,       // IN: X Coord in current projection
double                  aGroundY,       // IN: Y Coord in current projection
double*                 aPixelX,        // OUT: X Coord in pixel space
double*                 aPixelY,        // OUT: Y Coord in pixel space
const GM_Rectangle_t*   aWorldBounds,   // IN: World bounds to convert from or NULL for last drawn
const GM_PixelRect_t*   aPixelRect,     // IN: Pixel bounds to convert from or NULL for last drawn 
double                  aOrientation    // IN Orientation of coordinate space to use (0 is north up, 90 is east up, 180 is south up, 270 is west up)
);