update : 2015.11.03
php.shukuma.com

검색:
 
 
Changes the color value of any pixel that matches target

Imagick::paintFloodfillImage

(PECL imagick 2.1.0)

Imagick::paintFloodfillImageChanges the color value of any pixel that matches target

설명

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

Changes the color value of any pixel that matches target and is an immediate neighbor. As of ImageMagick 6.3.8 this method has been deprecated and Imagick::floodfillPaintImage() should be used instead.

인수

fill

ImagickPixel object or a string containing the fill color

fuzz

The amount of fuzz. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.

bordercolor

ImagickPixel object or a string containing the border color

x

X start position of the floodfill

y

Y start position of the floodfill

channel

채널 모드에 유효한 채널 상수를 제공합니다. 둘 이상의 채널을 적용하려면, 비트 연산자를 이용해서 채널 상수를 조합하십시오. 기본값은 Imagick::CHANNEL_DEFAULT. 채널 상수 목록을 참고하십시오.

반환값

성공시에 TRUE를 반환합니다.