Class: Magick::SolidFill
Instance Method Summary collapse
- #fill(img) ⇒ Object
-
#initialize(bgcolor) ⇒ SolidFill
constructor
A new instance of SolidFill.
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 |