(PECL imagick 2.0.0)
Imagick::shadowImage — Simulates an image shadow
$opacity
, float $sigma
, int $x
, int $y
) : boolSimulates an image shadow.
opacity
sigma
x
y
Întoarce TRUE
în caz de succes.
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();
}
?>