QG_CaptureCell
QG_CaptureCell(areaRef; cellNumber; cellPicture):errorCode | |||
---|---|---|---|
![]() |
areaRef | Longint | QGrid area reference |
![]() |
cellNumber | Longint | Cell index |
![]() |
cellPicture | Picture | Cell picture |
![]() |
error | Longint | Error result |
Capture 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 (24-bit picture) and has a size equal to the grid cell. If cellNumber is out of range, cellPicture is set to empty picture and qg_paramErr error is returned.
Example
// Copy the first cell as a picture to the pasteboard/ C_LONGINT($err) C_PICTURE($pict) $err:=QG_CaptureCell (xGrid;1;$pict) ASSERT($err=qg_noErr) SET PICTURE TO PASTEBOARD($pict)