DJ Mike's Tutorials: PHP

Imagick Functions

^

Imagick::swirlImage

Description:
bool Imagick::swirlImage ( float $degrees )

Swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.
Parameters:
degrees
Return Values
Returns TRUE on success.
Errors/Exceptions
Throws ImagickException on error.

Example

<?php 
header
('Content-type: image/jpeg'); 
$image = new Imagick("opossum.jpg"); 
$image->swirlimage(180); 
echo 
$image
?>


^


Created by DJ Mike from Santa Barbara

DJ Mike


Dance Away Santa Barbara's Home Page
<a href="http://www.statcounter.com/" target="_blank"> <img src="http://c5.statcounter.com/counter.php?sc_project=1321035&java=0&security=da2193dc" alt="counter free hit invisible" border="0" /></a>