### QPx_CropPicture

QPx_CropPicture(pictVar; cropLeft; cropTop; cropRight; cropBottom):error
| pictVar | Picture | Picture variable
| cropLeft | Longint | Crop rectangle left
| cropTop | Longint | Crop rectangle top
| cropRight | Longint | Crop rectangle right
| cropBottom | Longint | Crop rectangle bottom
| error | Longint | Error result

Crops a picture at the specified rectangle.

The source picture is passed in the pictVar parameter. The source picture may be compressed or uncompressed. The cropped picture is also returned in the pictVar parameter and it is always uncompressed. If an error occurs, pictVar is set to an empty picture.

Parameters cropLeft, cropTop, cropRight and cropBottom specify the cropping rectangle. If the cropping rectangle that results from these coordinates extends past the image rectangle, the specified cropping rectangle is automatically constrained to the image rectangle (no error is returned).

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