GM_Layer_tGetLocationColor Method (GM_Layer_t, Double, Double, GM_Color_t)
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).

Namespace:  GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
public static GM_Error_t32 GetLocationColor(
	GM_Layer_t aLayer,
	double aXCoord,
	double aYCoord,
	out GM_Color_t aColor
)

Parameters

aLayer
Type: GlobalMapperGM_Layer_t
IN: Layer to get color from or NULL for topmost
aXCoord
Type: SystemDouble
IN: X coord in current projection
aYCoord
Type: SystemDouble
IN: Y coord in current projection
aColor
Type: GlobalMapperGM_Color_t
OUT: Color of pixel at location

Return Value

Type: GM_Error_t32
A GM Error Code
See Also