Class: Magick::SolidFill
- Inherits:
-
Object
- Object
- Magick::SolidFill
- Defined in:
- lib/rmagick_internal.rb
Overview
Fill class with solid monochromatic color
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.
1938 1939 1940 |
# File 'lib/rmagick_internal.rb', line 1938 def initialize(bgcolor) @bgcolor = bgcolor end |
Instance Method Details
#fill(img) ⇒ Object
1942 1943 1944 1945 |
# File 'lib/rmagick_internal.rb', line 1942 def fill(img) img.background_color = @bgcolor img.erase! end |