MagickPaintFloodfillImage -- changes the color value of any pixel that matches the target pixel and is an immediate neighbor
bool MagickPaintFloodfillImage( MagickWand mgck_wnd, PixelWand fillcolor_pxl_wnd, float fuzz, PixelWand bordercolor_pxl_wnd, int x, int y [, int channel_type] )
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.channel_type must be a ChannelType constant, one of the following: MW_RedChannel MW_CyanChannel MW_GreenChannel MW_MagentaChannel MW_BlueChannel MW_YellowChannel MW_AlphaChannel MW_OpacityChannel MW_BlackChannel MW_IndexChannel MW_AllChannels
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
|channel_type||(OPTIONAL) identify which channel to floodfill (see above for possible values)|