Here's a example of this function:
<?php
$img = new Imagick();
$img->readImage($image_file_name);
$img->whiteThresholdImage('grey');
$img->writeImage($thumb_file_name);
$img->clear();
$img->destroy();
?>
PHP.mk документација
Imagick::whiteThresholdImage
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
imagick.whitethresholdimage.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
imagick.whitethresholdimage.php
Imagick::whiteThresholdImage
Референца за `imagick.whitethresholdimage.php` со подобрена типографија и навигација.
Imagick::whiteThresholdImage
(PECL imagick 2, PECL imagick 3)
Imagick::whiteThresholdImage — Force all pixels above the threshold into white
= NULL
Is like Imagick::ThresholdImage() but force all pixels above the threshold into white while leaving all pixels below the threshold unchanged.
Параметри
threshold-
Вратени вредности
Патеката до PHP скриптата што треба да се провери. true на успешен исход.
Дневник на промени
| Верзија | = NULL |
|---|---|
| PECL imagick 2.1.0 | Now allows a string representing the color as a parameter. Previous versions allow only an ImagickPixel object. |
Примери
Пример #1 Imagick::whiteThresholdImage()
<?php
function whiteThresholdImage($imagePath, $color) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->whiteThresholdImage($color);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>Белешки од корисници 1 белешка
elmer at web-axis dot net ¶
пред 17 години