Click or drag to resize

GM_GetPixelBandValue

Retrieves the raw band value at a given pixel location from the provided raster layer. If the layer does not contain a valid sample at the provided pixel location (i.e. it is a "no data" or transparent value), GM_Error_NoDataAtLocation will be returned. Use this to access the raw values from high-bit depth and multi-band imagery layers.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetPixelBandValue

(

GM_LayerHandle_t32      aLayer,     // IN: Layer to get color from

sint32                  aRow,       // IN: Y coord of pixel (0 is topmost)

sint32                  aCol,       // IN: X coord of pixel (0 is leftmost)

sint32                  aBand,      // IN: Band to get value for (0-based, so first band is 1)

sint32*                 aVal        // OUT: Color of pixel at location    

)