class Magick::SolidFill

Fill class with solid monochromatic color

Public Class Methods

new(bgcolor) click to toggle source
# File lib/rmagick_internal.rb, line 1879
def initialize(bgcolor)
  @bgcolor = bgcolor
end

Public Instance Methods

fill(img) click to toggle source
# File lib/rmagick_internal.rb, line 1883
def fill(img)
  img.background_color = @bgcolor
  img.erase!
end