Click or drag to resize

GM_GetPixelColor

Retrieves the color at a given pixel location from the provided raster layer. If the layer does not contain a valid color value at the provided pixel location (i.e. it is a "no data" or transparent value), GM_Error_NoDataAtLocation will be returned.

Syntax
GM_DLL_EXPORTED GM_Error_t32 GM_GetPixelColor
(
GM_LayerHandle_t32      aLayer,     // IN: Layer to get color from or NULL for topmost
sint32                  aRow,       // IN: Y coord of pixel (0 is topmost)
sint32                  aCol,       // IN: X coord of pixel (0 is leftmost)
GM_Color_t*             aColor      // OUT: Color of pixel at location    
);