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.Types
Assembly:
GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.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
)
Public Shared Function GetPixelBandValue (
aLayer As GM_Layer_t,
aRow As Integer,
aCol As Integer,
aBand As Integer,
<OutAttribute> ByRef aVal As Integer
) As GM_Error_t32
public:
static GM_Error_t32 GetPixelBandValue(
GM_Layer_t^ aLayer,
int aRow,
int aCol,
int aBand,
[OutAttribute] int% aVal
)
Parameters
- aLayer
- Type: GlobalMapper.TypesGM_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