Imagick::shadowImage
(PECL imagick 2.0.0)
Imagick::shadowImage — Simulates an image shadow
Description
bool Imagick::shadowImage ( float $opacity , float $sigma , int $x , int $y )Simulates an image shadow.
Parameters
opacity sigma x y
Return Values
Returns TRUE on success.
Examples
Example #1 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();
}
?>← Imagick::shadeImage
Imagick::sharpenImage →
© 1997–2017 The PHP Documentation GroupLicensed under the Creative Commons Attribution License v3.0 or later.
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

