class Magick::SolidFill
Fill class with solid monochromatic color
Public Class Methods
new(bgcolor)
click to toggle source
# File lib/rmagick_internal.rb, line 1939 def initialize(bgcolor) @bgcolor = bgcolor end
Public Instance Methods
fill(img)
click to toggle source
# File lib/rmagick_internal.rb, line 1943 def fill(img) img.background_color = @bgcolor img.erase! end