Class: Magick::SolidFill

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

Overview

Fill class with solid monochromatic color

Instance Method Summary collapse

Constructor Details

#initialize(bgcolor) ⇒ SolidFill

Returns a new instance of SolidFill.



1856
1857
1858
# File 'lib/rmagick_internal.rb', line 1856

def initialize(bgcolor)
  @bgcolor = bgcolor
end

Instance Method Details

#fill(img) ⇒ Object



1860
1861
1862
1863
# File 'lib/rmagick_internal.rb', line 1860

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