downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::writeImage> <Imagick::waveImage
[edit] Last updated: Fri, 17 May 2013

view this page in

Imagick::whiteThresholdImage

(PECL imagick 2.0.0)

Imagick::whiteThresholdImage閾値に満たないすべてのピクセルを白にする

説明

bool Imagick::whiteThresholdImage ( mixed $threshold )

Imagick::thresholdImage() と似ていますが、 これは閾値に満たないピクセルをすべて白にし、その他のピクセルはそのままにします。

パラメータ

threshold

返り値

成功した場合に TRUE を返します。

変更履歴

バージョン 説明
2.1.0 色を表す文字列をパラメータとして指定できるようになりました。 これまでのバージョンでは ImagickPixel オブジェクトしか指定できませんでした。



add a note add a note User Contributed Notes Imagick::whiteThresholdImage - [1 notes]
up
0
elmer at web-axis dot net
4 years ago
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();
?>

 
show source | credits | sitemap | contact | advertising | mirror sites