File path: dist/twist/Core/Models/Image/Image.model.php
Namespace: Twist\Core\Models\Image
rotate
— Rotate 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.
Name | Description |
---|---|
$mxdAngle | n/a |
[$mxdBackgroundColour = '] | n/a |
void — No return information has been documented for this function.
<?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);