GoLang Imagick::shadowImage

request it (36)
GoLang replacement for PHP's Imagick::shadowImage [edit | history]



Do you know a GoLang replacement for PHP's Imagick::shadowImage? Write it!

PHP Imagick::shadowImage

PHP original manual for Imagick::shadowImage [ show | php.net ]

Imagick::shadowImage

(PECL imagick 2.0.0)

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

?>