Sha256: b0654f1b771756d34a9cf57472e8197ff7123ed481fd2cb737f4a9976e72afd6

Contents?: true

Size: 306 Bytes

Versions: 19

Compression:

Stored size: 306 Bytes

Contents

#! /usr/local/bin/ruby -w
require 'RMagick'

img = Magick::Image.read("images/Flower_Hat.jpg").first
rose = Magick::Image.read("images/Yellow_Rose.miff").first
begin
   img.affinity(rose)
rescue NotImplementedError
   img = Magick::Image.read("images/notimplemented.gif").first
end
img.write("remap.jpg")

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/remap.rb
rmagick-2.13.3 doc/ex/remap.rb
rmagick-2.13.3.rc1 doc/ex/remap.rb
rmagick-2.13.2 doc/ex/remap.rb
rdp-rmagick-0.0.0 doc/ex/remap.rb
rmagick-2.13.1 doc/ex/remap.rb
rmagick-2.12.2 doc/ex/remap.rb
rmagick-2.12.1 doc/ex/remap.rb
rmagick-2.12.0 doc/ex/remap.rb
rmagick-2.11.1 doc/ex/remap.rb
rmagick-2.10.0 doc/ex/remap.rb
rmagick-2.11.0 doc/ex/remap.rb
rmagick-2.7.1 doc/ex/remap.rb
rmagick-2.7.0 doc/ex/remap.rb
rmagick-2.7.2 doc/ex/remap.rb
rmagick-2.8.0 doc/ex/remap.rb
rmagick-2.9.0 doc/ex/remap.rb
rmagick-2.9.1 doc/ex/remap.rb
rmagick-2.9.2 doc/ex/remap.rb