lib/rmagick_internal.rb
# Set all pixels to the fill color. Very similar to Image#erase!
# Accepts either String or Pixel arguments
Set all pixels to the fill color. Very similar to Image#erase.
Accepts either String or Pixel arguments
Set all pixels to the fill color . Very similar to Image#erase . Accepts either String or Pixel arguments
def color_reset!(fill)
      save = background_color
      self.background_color = fill
      begin
        erase!
      ensure
        self.background_color = save
      end
      self
    end
def color_reset! ( fill ) save = background_color self . background_color = fill begin erase! ensure self . background_color = save end self end
Set all pixels to the fill color.
Set all pixels to the fill color .
# Change the background color _outside_ the begin block # so that if this object is frozen the exeception will be # raised before we have to handle it explicitly.
fill
<not_specific>