Make transparent any neighbor pixel that is not the border color.
Source Code
# File RMagick.rb, line 895 def matte_fill_to_border(x, y) f = copy f.opacity = Magick::OpaqueOpacity unless f.matte f.matte_flood_fill(border_color, TransparentOpacity, x, y, FillToBorderMethod) end
<code/>and<pre/>for code samples.