PHP 8.4.0 RC4 available for testing

Imagick::vignetteImage

(PECL imagick 2, PECL imagick 3)

Imagick::vignetteImageAdds vignette filter to the image

Descrizione

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

Softens the edges of the image in vignette style. Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 o successive.

Elenco dei parametri

blackPoint

The black point.

whitePoint

The white point

x

X offset of the ellipse

y

Y offset of the ellipse

Valori restituiti

Restituisce true in caso di successo.

Esempi

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

?>

Vedere anche:

add a note

User Contributed Notes

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