QG_GetCellPicture
QG_GetCellPicture(areaRef; pictExpression; rectLeft; rectTop; rectRight; rectBottom; displayFormat):errorCode | |||
---|---|---|---|
![]() |
areaRef | Longint | QGrid area reference |
![]() |
pictExpression | Text | The picture expression |
![]() |
rectLeft | Longint | Left coordinate |
![]() |
rectTop | Longint | Top coordinate |
![]() |
rectRight | Longint | Right coordinate |
![]() |
rectBottom | Longint | Bottom coordinate |
![]() |
displayFormat | Longint | Picture format number |
![]() |
error | Longint | Error result |
Get the picture object properties
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter pictExpression receives the picture expression used to draw the picture object.
Parameters rectLeft, rectTop, rectRight and rectBottom receive the picture box coordinates in the cell's coordinate system.
Parameter displayFormat receives the picture display format. QGrid defines the following constants for picture display formats:
qg_PictTruncCentered | 1 | Same as 4D's Truncated Centered (default) |
qg_PictScaledToFit | 2 | Same as 4D's Scaled To Fit |
qg_PictTruncNonCenter | 4 | Same as 4D's Truncated non Centered |
qg_PictScaledToFitProp | 5 | Same as 4D's Scaled to fit proportional |
qg_PictScaledToFitPropCenter | 6 | Same as 4D's Scaled to fit prop centered |
qg_PictXScaledToFitProp | 8 | Same as 4D's Scaled to fit proportional, but scales up as well |
qg_PictXScaledToFitPropCenter | 9 | Same as 4D's Scaled to fit prop centered, but scales up as well |
Related commands
QG_SetCellPicture | Set the picture object of area cells |
QG_GetCellCaption | Get the current caption object properties |