(PECL imagick 2.0.0)
Adds 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. 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
Returns:
Returns TRUE
on success.
Examples:
Imagick::vignetteImage()
1 2 3 4 5 6 7 8 9 | <?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(); } ?> |
See also:
Please login to continue.