Method: Magick::Image#color_floodfill
- Defined in:
- lib/rmagick_internal.rb
#color_floodfill(x, y, fill) ⇒ Object
Set all pixels that have the same color as the pixel at x,y and are neighbors to the fill color
796 797 798 799 |
# File 'lib/rmagick_internal.rb', line 796 def color_floodfill(x, y, fill) target = pixel_color(x, y) color_flood_fill(target, fill, x, y, Magick::FloodfillMethod) end |