QPix Command Reference
![]() |
![]() ![]() |
QPx_ResizePicture(pictVar; hScale; vScale):error | |||
![]() |
pictVar | Picture | Picture variable |
![]() |
hScale | Real | Horizontal scale |
![]() |
vScale | Real | Vertical scale |
![]() |
error | Longint | Error result |
Resizes a picture variable.
The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The resized picture is also returned in the pictVar parameter and it is always uncompressed.
The horizontal and vertical resize factors are specified by the horzScale and vertScale parameters respectively.
Tip: You can decompress a compressed picture by using QPx_ResizePicture($pict;1;1)
Example
`Resize a picture (grow 50%) C_PICTURE($pict) C_REAL($horzScale;$vertScale) C_LONGINT($error) $pict:= gp_OriginalPicture $horzScale:=1.5 $vertScale:=1.5 $error:=QPx_ResizePicture ($pict;$horzScale;$vertScale) If ($error=qpx_noErr) gp_ResizedPicture:=$pict End if |