QPx_ResizePicture(pictVar; pictVar; pictVar; pictVar):error
pictVar Picture Picture variable
hScale Real Horizontal scale
vScale Real Vertical scale
resizeOptions Longint Options
error Longint Error result

Resize a picture variable horizontally and/or vertically

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. If an error occurs, pictVar is set to an empty picture.

The horizontal and vertical resize factors are specified by the horzScale and vertScale parameters respectively.

TIP Decompress a compressed picture by using QPx_ResizePicture($pict;1;1)

The resizeOptions parameter is optional. It can be used to specify options for the resizing operation.

qpx_ResizeHighQuality 0x0004 High quality resizing


   // Resize a picture (grow 50%)



$error:=QPx_ResizePicture ($pict;$horzScale;$vertScale)

If ($error=qpx_noErr)
End if