PHP Imagick swirlImage () function


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:  
// Create an Imagick object $imagick = new Imagick ( ' .png ' );  
// spin the image $imagick -> swirlImage (350); header ( ' Content-type: image / png' );  
// Display the output image echo $imagick ;  
Output: Link: