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

search for in the

Imagick::paintOpaqueImage> <Imagick::orderedPosterizeImage
[edit] Last updated: Fri, 24 May 2013

view this page in

Imagick::paintFloodfillImage

(PECL imagick 2.1.0)

Imagick::paintFloodfillImage色にマッチするピクセルを変更する

説明

bool Imagick::paintFloodfillImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y [, int $channel = Imagick::CHANNEL_ALL ] )

対象にマッチするピクセルとその近傍の色を変更します。 ImageMagick 6.3.8 以降はこのメソッドは非推奨となりました。かわりに Imagick::floodfillPaintImage() を使用します。

パラメータ

fill

塗りつぶし色を表す ImagickPixel オブジェクトあるいは文字列。

fuzz

fuzz の量。たとえば fuzz を 10 にすると、 強度 100 の赤と 102 の赤は同じ色とみなします。

bordercolor

境界色を表す ImagickPixel オブジェクトあるいは文字列。

x

floodfill の開始位置の X 座標。

y

floodfill の開始位置の Y 座標。

channel

そのモードで有効なチャネル定数を指定します。 複数のチャネルを適用するには、チャネル定数 をビット演算子で組み合わせます。デフォルトは Imagick::CHANNEL_DEFAULT です。 チャネル定数 の一覧を参照ください。

返り値

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



add a note add a note User Contributed Notes Imagick::paintFloodfillImage - [1 notes]
up
0
mamcia at gmail dot com
2 years ago
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();
?>

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