Prev
MagickWand For PHP
Manual


Next

MagickColorFloodfillImage

MagickColorFloodfillImage -- changes the color value of any pixel that matches the target pixel and is an immediate neighbor

Description

bool MagickColorFloodfillImage( MagickWand mgck_wnd, PixelWand fillcolor_pxl_wnd, float fuzz, PixelWand bordercolor_pxl_wnd, int x, int y )

Changes the color value of any pixel that matches target the target pixel (at point (x,y)) and is an immediate neighbor. The color value is changed for any neighbor pixel that does not match the bordercolor PixelWand.


A description of each parameter follows:

mgck_wnd A MagickWand resource
fillcolor_pxl_wnd The floodfill color PixelWand -- the color matching pixels will be changed to.
fuzz By default, the fill will only recolor pixels that match the initial pixel's color exactly.
However, in many cases two colors may differ by a small amount.
The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same.
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_pxl_wnd The border color PixelWand -- any pixel with this color will not be changed.
x, y The starting location of the operation.
The color to be replaced is retrieved from this pixel


Prev
MagickCoalesceImages
Up Next
MagickColorizeImage