Global Mapper SDK
| GM_Layer_t .GetPixelBandValue 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: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)
C#
public static GM_Error_t32 GetPixelBandValue ( GM_Layer_t aLayer , int aRow , int aCol , int aBand , out int aVal )
Parameters
- aLayer
-
Type:
GlobalMapper
.
GM_Layer_t
IN: Layer to get color from - aRow
-
Type:
System
.
Int32
IN: Y coord of pixel (0 is topmost) - aCol
-
Type:
System
.
Int32
IN: X coord of pixel (0 is leftmost) - aBand
-
Type:
System
.
Int32
IN: Band to get value for (0-based, so first band is 1) - aVal
-
Type:
System
.
Int32
OUT: Color of pixel at location
Return Value
Type: GM_Error_t32A GM Error Code
Comments
0 comments
Please sign in to leave a comment.