Syntax:bool Imagick::swirlImage (float $degrees)
Parameters:This function takes one parameter,
$degree, which specifies the
degree of the swirling effect.
Return value:this function returns TRUE on success.
Exceptions:this function throws an ImagickException on error.The following program illustrates the
Imagick function::swirlImage()in PHP:
Program: php
// Create an Imagick object
$imagick
=
new
Imagick (
’ https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-9 .png ’
);
// spin the image
$imagick
-> swirlImage (350);
header (
’ Content-type: image / png’
);
// Display the output image
echo
$imagick
;
?>
Output: Link: https://www.php.net/manual/en/imagick.swirlimage.php