Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22627 программистов и 1039 роботов. Сейчас ищет 671 программист ...
Приступая к работе

Imagick::whiteThresholdImage - Force all pixels above the threshold into white

Вернуться к: Imagick

Imagick::whiteThresholdImage

(PECL imagick 2.0.0)

Imagick::whiteThresholdImageForce all pixels above the threshold into white

Описание

bool Imagick::whiteThresholdImage ( mixed $threshold )

Is like Imagick::ThresholdImage() but force all pixels above the threshold into white while leaving all pixels below the threshold unchanged.

Список параметров

threshold

Возвращаемые значения

В случае успешной работы возвращает TRUE.

Список изменений

Версия Описание
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();
}

?>



Вернуться к: Imagick

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware