(PECL imagick 2.0.0)
Simulates an image shadow
bool Imagick::shadowImage ( float $opacity, float $sigma, int $x, int $y )
Simulates an image shadow.
Parameters:
opacity
Simulates an image shadow.
sigma
Simulates an image shadow.
x
Simulates an image shadow.
y
Simulates an image shadow.
Returns:
Returns TRUE on success.
Examples:
Imagick::shadowImage()
<?php
function shadowImage($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->shadowImage(0.4, 10, 50, 5);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>
Please login to continue.