Imagick::shadowImage

(PECL imagick 2.0.0)

Imagick::shadowImageSimulates an image shadow

Description

Imagick::shadowImage ( float $opacity , float $sigma , int $x , int $y ) : bool

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.410505);
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top