<?
$image = new Imagick('test.jpg'); // open image file
$image->contrastImage(9); // 0 - 9
$image->writeImage('test2.jpg'); //save image
?>
Imagick::contrastImage
(PECL imagick 2.0.0)
Imagick::contrastImage — Change the contrast of the image
Opis
bool Imagick::contrastImage
( bool $sharpen
)
Ostrzeżenie
Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.
Enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a value other than 0 to increase the image contrast otherwise the contrast is reduced.
Parametry
- sharpen
-
The sharpen value
Zwracane wartości
Zwraca TRUE w przypadku sukcesu.
Błędy/Wyjątki
Zgłasza wyjątek ImagickException w przypadku błędu.
Imagick::contrastImage
goekar at msn dot com
08-Aug-2007 12:33
08-Aug-2007 12:33
