Method: ImageRuby::PureRubyImageMethods#color_replace

Defined in:
lib/imageruby/pureruby.rb

#color_replace(color1, color2) ⇒ Object

Duplicate the image and then call color_replace! method with the given parameters



233
234
235
236
237
238
# File 'lib/imageruby/pureruby.rb', line 233

def color_replace(color1, color2)

  newimage = self.dup
  newimage.color_replace!(color1,color2)
  newimage
end