(PECL imagick 2.0.0)
Imagick::vignetteImage — Adds vignette filter to the image
$blackPoint
, float $whitePoint
, int $x
, int $y
) : boolSoftens 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();
}
?>