## PaintFloodfill PaintFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image. By default target must match a particular pixel 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. The format of the PaintFloodfillImage method is:
      MagickBooleanType PaintFloodfillImage(Image *image,
        const ChannelType channel,const MagickPixelPacket target,
        const long x_offset,const long y_offset,const DrawInfo *draw_info,
        const PaintMethod method)
A description of each parameter follows: ##### image The image. ##### channel The channel(s). ##### target The RGB value of the target color. ##### x_offset,y_offset The starting location of the operation. ##### draw_info The draw info. ##### method Choose either FloodfillMethod or FillToBorderMethod. ## PaintOpaqueImage PaintOpaqueImage() changes any pixel that matches color with the color defined by fill. By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz 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. The format of the PaintOpaqueImage method is:
      MagickBooleanType PaintOpaqueImage(Image *image,
        const PixelPacket *target,const PixelPacket *fill)
      MagickBooleanType PaintOpaqueImageChannel(Image *image,
        const ChannelType channel,const PixelPacket *target,
        const PixelPacket *fill)
A description of each parameter follows: ##### image The image. ##### channel The channel(s). ##### target The RGB value of the target color. ##### fill The replacement color. ## PaintTransparentImage PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity. By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz 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. The format of the PaintTransparentImage method is:
      MagickBooleanType PaintTransparentImage(Image *image,
        const MagickPixelPacket *target,const Quantum opacity)
A description of each parameter follows: ##### image The image. ##### target The RGB value of the target color. ##### opacity The replacement opacity value. |

Discourse Server • Mailing Lists • ImageMagick Studio