TwistPHP Documentation

rotate

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

rotateRotate the image by adding in either left/right which will rotate by 90 degrees, or passing in a number form 0-360 (also negative 0-360 can be specified) in degrees. Blank space created during rotation will be filled with the colour passed in the second parameter.

Parameters

Name Type Description
$mxdAnglemixedn/a
[$mxdBackgroundColour = ']mixedn/a

Return Values

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

Example

<?php
//Set the variables for the example
$mxdAngle 'foo-123';
$mxdBackgroundColour ';

//Call the function rotate with the example vars
$resImage = new \Twist\Core\Models\Image\Image();
$resImage -> rotate($mxdAngle, $mxdBackgroundColour);