Sha256: ee67eb578f43a9d16b3231dc8893046105de43fc2dd3df14995851a4b6beab35

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 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("affinity.jpg")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmagick-2.6.0 doc/ex/affinity.rb