globalmapper.GetPixelColorRow

globalmapper.GetPixelColorRow(GM_LayerHandle_t32 aLayer, sint32 aRow, COLORREF aInvalidVal) GM_Error_t32, COLORREF[source]

Retrieves the color values for an entire row of the provided layer. If any pixels don’t have valid values they will be replaced by aInvalidVal. This function is much faster than individually getting the color value for individual pixels using the GetPixelColor function, so use this to access large portions of a loaded layer.

Parameters:
  • aLayer (GM_LayerHandle_t32) – Layer to get color from

  • aRow (sint32) – Y coord of pixel (0 is topmost)

  • aInvalidVal (COLORREF) – Value to use for invalid pixels

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Buffer to hold color values

Return type:

COLORREF