GM_GetPixelDataInRect

Retrieves an entire chunk of raw data from the provided layer.

Syntax

C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GetPixelDataInRect
(
GM_LayerHandle_t32          aLayer,         // IN: Layer to get band values from
const GM_PixelRect_t*       aPixelRect,     // IN: rectangle of pixels to extract from layer (NULL to extract the entire image)
GM_RasterLayout_t*          aRasterLayout,  // IN: Raster layout (some values used if non-zero, like mBytesPerRow, other values filled in)
void*                       aDataBuf,       // OUT: buffer that will be filled with the image data. Must be large enough to hold all data. If NULL, aRasterLayout will be filled out before return.
void*                       aReserved       // IN: reserved for future use, must be NULL
);