QGrid
![]() |
![]() ![]() |
QG_CaptureCell(areaRef; cellNumber; cellPicture):errorCode | |||
![]() |
areaRef | Longint | QGrid area reference |
![]() |
cellNumber | Longint | Cell index |
![]() |
cellPicture | Picture | Cell picture |
![]() |
error | Longint | Error result |
Captures the complete image of a grid cell in a picture.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter cellNumber specifies which grid cell to capture.
Parameter cellPicture receives the result of the capture. The cell picture returned is an uncompressed 4D picture with millions of colors (32-bit picture) the size of the grid cell. If cellNumber is out of range, cellPicture is set to an empty picture and qg_paramErr error is returned.
Example
` Get the 4D picture displayed in cell number <>gCellNo C_LONGINT($error) C_PICTURE($pict) $error:= QG_CaptureCell(gQGridArea;<>gCellNo;$pict) If ($error # qg_noErr ) ` Handle the error End if |