GoLang Imagick::vignetteImage

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



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

PHP Imagick::vignetteImage

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

Imagick::vignetteImage

(PECL imagick 2.0.0)

Imagick::vignetteImageAdds vignette filter to the image

Description

bool Imagick::vignetteImage ( float $blackPoint , float $whitePoint , int $x , int $y )

Softens the edges of the image in vignette style. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

Parameters

blackPoint

The black point.

whitePoint

The white point

x

X offset of the ellipse

y

Y offset of the ellipse

Return Values

Returns TRUE on success.

See Also

Examples

Example #1 Imagick::vignetteImage()

<?php
function vignetteImage($imagePath$blackPoint$whitePoint$x$y) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->vignetteImage($blackPoint$whitePoint$x$y);
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>