### QPx_ResizePicture

QPx_ResizePicture(pictVar; hScale; vScale; resizeOptions):error
| pictVar | Picture | Picture variable
| hScale | Real | Horizontal scale
| vScale | Real | Vertical scale
| resizeOptions | Longint | Options
| 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. 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: You can decompress a compressed picture by using QPx_ResizePicture($pict;1;1)

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

qpx_ResizeHighQuality | 0x0004 | High quality resizing

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`

QPix © Escape
Generated by QDoc 2.8 on Wed, Feb 17, 2010 17:43:16