note 102483 modified in function.imagick-paintfloodfillimage by danbrown

[email protected] Thu, 17 Feb 2011 08:16:24 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Seems that this method doesn't work as expected. Use Imagick::floodFillPaintImage() instead.

<?php
$img = new Imagick('/tmp/test.png');
$img->floodFillPaintImage('green', 10, 'white', 100, 100, false);
$img->writeImage('/tmp/out.png');
$img->clear();
$img->destroy();
?>

--was--
Seems that this method doesn't work as expected. Use Imagick::floodFillPaintImage() instead.

$img = new Imagick('/tmp/test.png');
$img->floodFillPaintImage('green', 10, 'white', 100, 100, false);
$img->writeImage('/tmp/out.png');
$img->clear();
$img->destroy();

http://php.net/manual/en/function.imagick-paintfloodfillimage.php