(PECL imagick 2, PECL imagick 3)

Imagick::addNoiseImageAdds random noise to the image


public Imagick::addNoiseImage(int $noise_type, int $channel = Imagick::CHANNEL_DEFAULT): bool

Adds random noise to the image.

Elenco dei parametri


The type of the noise. Refer to this list of noise constants.


Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Per default รจ Imagick::CHANNEL_DEFAULT. Fare riferimento a questa lista di costanti di canale

Valori restituiti

Restituisce true in caso di successo.


Example #1 Imagick::addNoiseImage()

function addNoiseImage($noiseType$imagePath$channel) {
$imagick = new \Imagick(realpath($imagePath));
header("Content-Type: image/jpg");


add a note add a note

User Contributed Notes

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