QPix Command Reference Pictures |

### 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.

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 Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:49:51 +0300