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

search for in the

Imagick::writeImage> <Imagick::waveImage
Last updated: Fri, 20 May 2011

view this page in

Imagick::whiteThresholdImage

(PECL imagick 2.0.0)

Imagick::whiteThresholdImageFuerza a todos los píxeles por encima del umbral a ser blancos

Descripción

bool Imagick::whiteThresholdImage ( mixed $threshold )
Warning

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Es como Imagick::ThresholdImage() excepto que fuerza a todos los píxeles por encima del umbral a ser blancos dejando todos los píxeles por debajo del umbral sin cambios.

Parámetros

threshold

Valores devueltos

Devuelve TRUE en caso de éxito.

Historial de cambios

Versión Descripción
2.1.0 Ahora se permite que una cadena represente el color como parámetro. Versiones previas sólo permitían un objeto ImagickPixel.



add a note add a note User Contributed Notes Imagick::whiteThresholdImage
elmer at web-axis dot net 30-Nov-2008 11:32
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 | stats | sitemap | contact | advertising | mirror sites