TwistPHP Documentation

crop

File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
Extends:

cropCrop the image with the following left, top, right, bottom coordinates

Parameters

Name Type Description
$intX1integern/a
$intY1integern/a
$intX2integern/a
$intY2integern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intX1 124;
$intY1 124;
$intX2 124;
$intY2 124;

//Call the function crop with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> crop($intX1$intY1$intX2$intY2);