GM_Layer_tGetPixelBandValue Method (GM_Layer_t, Int32, Int32, Int32, Int32) |
Retrieves the band value at a given pixel location in the provided layer.
Namespace:
GlobalMapper
Assembly:
GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax public static GM_Error_t32 GetPixelBandValue(
GM_Layer_t aLayer,
int aRow,
int aCol,
int aBand,
out int aVal
)
Parameters
- aLayer
- Type: GlobalMapperGM_Layer_t
IN: Layer to get color from - aRow
- Type: SystemInt32
IN: Y coord of pixel (0 is topmost) - aCol
- Type: SystemInt32
IN: X coord of pixel (0 is leftmost) - aBand
- Type: SystemInt32
IN: Band to get value for (0-based, so first band is 1) - aVal
- Type: SystemInt32
OUT: Color of pixel at location
Return Value
Type:
GM_Error_t32A GM Error Code
See Also