PHP Doku:: Forces all pixels below the threshold into black - function.imagick-blackthresholdimage.html

Verlauf / Chronik / History: (8) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungImage Processing (ImageMagick)The Imagick classImagick::blackThresholdImage

Ein Service von Reinhard Neidl - Webprogrammierung.

The Imagick class

<<Imagick::averageImages

Imagick::blurImage>>

Imagick::blackThresholdImage

(PECL imagick 2.0.0)

Imagick::blackThresholdImageForces all pixels below the threshold into black

Beschreibung

bool Imagick::blackThresholdImage ( mixed $threshold )
Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Is like Imagick::thresholdImage() but forces all pixels below the threshold into black while leaving all pixels above the threshold unchanged.

Parameter-Liste

threshold

The threshold below which everything turns black

Rückgabewerte

Liefert TRUE bei Erfolg.

Changelog

Version Beschreibung
2.1.0 Now allows a string representing the color as a parameter. Previous versions allow only an ImagickPixel object.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
elmer at web-axis dot net
1.12.2008 0:33
Here's a example of this function:

<?php
  $img
= new Imagick();
 
$img->readImage($image_file_name);
 
$img->blackThresholdImage('grey');
 
$img->writeImage($thumb_file_name);
 
$img->clear();
 
$img->destroy();
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)