DJ Mike's Tutorials: PHP

Imagemagick Functions


^

Imagick::shadeImage

Description:
bool Imagick::shadeImage ( bool $gray , float $azimuth , float $elevation )

Shines a distant light on an image to create a three-dimensional effect. You control the positioning of the light with azimuth and elevation.
Parameters
gray
If TRUE then a grayscale image is returned
azimuth
Measured in degrees off the x axis
elevation
Measured in pixels above the Z axis
Return Values
Returns TRUE on success.

Examples



<?php
$image 
= new Imagick("logo.png");
$image->shadeimageFALSE4530);
header"Content-Type: image/png" );
echo 
$image;
?>



<?php
$image 
= new Imagick("logo.png");
$image->shadeimageTRUE4530);
header"Content-Type: image/png" );
echo 
$image;
?>





<?php
$image 
= new Imagick("opossum.jpg");
$image->shadeimageFALSE4520);
header"Content-Type: image/png" );
echo 
$image;
?>



<?php
$image 
= new Imagick("opossum.jpg");
$image->shadeimageTRUE4520);
header"Content-Type: image/png" );
echo 
$image;
?>



^

Was this webpage useful to you? You can support this website by donating.


Created by DJ Mike from Santa Barbara

DJ Mike


<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>