globalmapper.GetLocationColor

globalmapper.GetLocationColor(GM_LayerHandle_t32 aLayer, float aXCoord, float aYCoord) GM_Error_t32, GM_Color_t[source]

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).

Parameters
  • aLayer (GM_LayerHandle_t32) – Layer to get color from or gm.NULL for topmost

  • aXCoord (float) – X coord in current projection

  • aYCoord (float) – Y coord in current projection

Returns

Error Code

Return type

GM_Error_t32

Returns

Color of pixel at location

Return type

GM_Color_t