Sha256: 81c46c5252ad8737aa25e63578625896043590e0dcc47c180102ced6380066cf
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
require 'RMagick' images = Magick::ImageList.new("images/Apple.miff", "images/Rocks_On_Beach.miff", "images/Leaf.miff") rose = Magick::Image.read("images/Yellow_Rose.miff").first rose[:Label] = "Affinity Image" result = Magick::ImageList.new result += images result << rose begin result += images.copy.affinity(rose) montage = result.montage { self.tile = "4x2" } montage.alpha Magick::DeactivateAlphaChannel rescue NotImplementedError montage = Magick::Image.read("images/notimplemented.gif").first end montage.write("affinity_images.jpg")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rmagick-2.6.0 | doc/ex/affinity_images.rb |