Class: Magick::SolidFill

Inherits:
Object
  • Object
show all
Defined in:
lib/sequence_logo/magick_support.rb

Instance Method Summary collapse

Constructor Details

#initialize(bgcolor) ⇒ SolidFill

Returns a new instance of SolidFill.



18
19
20
# File 'lib/sequence_logo/magick_support.rb', line 18

def initialize(bgcolor)
  @bgcolor = bgcolor
end

Instance Method Details

#fill(img) ⇒ Object



22
23
24
25
# File 'lib/sequence_logo/magick_support.rb', line 22

def fill(img)
  img.background_color = @bgcolor
  img.erase!
end