Imagick::vignetteImage

(PECL imagick 2.0.0)

Imagick::vignetteImageAdds vignette filter to the image

설명

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

Softens the edges of the image in vignette style. 이 메쏘드는 Imagick을 ImageMagick 6.2.9 이상으로 컴파일 했을 때만 사용할 수 있습니다.

인수

blackPoint

The black point.

whitePoint

The white point

x

X offset of the ellipse

y

Y offset of the ellipse

반환값

성공시에 TRUE를 반환합니다.

참고

예제

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();
}

?>

add a note add a note

User Contributed Notes

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