Global Mapper SDK
GM_GetLocationColor
Retrieves the color at a given location from a provided layer or from the list of currently loaded raster and elevation layers (topmost layer first).
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 GM_GetLocationColor
(
GM_LayerHandle_t32 aLayer, // IN: Layer to get color from or NULL for topmost
double aXCoord, // IN: X coord in current projection
double aYCoord, // IN: Y coord in current projection
GM_Color_t* aColor // OUT: Color of pixel at location
);