Sha256: 21f23b97cca2bf39b191b5f153fc1781c6d0258e872db365b4cea81d0f2a3a59

Contents?: true

Size: 418 Bytes

Versions: 67

Compression:

Stored size: 418 Bytes

Contents

#! /usr/local/bin/ruby -w
# Demonstrate ImageList#average method
require 'RMagick'

images = Magick::ImageList.new("images/Button_A.gif", "images/Button_B.gif", "images/Button_C.gif")

group = images.append false
group.compression = Magick::LZWCompression
group.write "average_before.gif"

average_image = images.average

average_image.compression = Magick::LZWCompression
average_image.write "average_after.gif"
exit

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/average.rb
rmagick-2.13.3 doc/ex/average.rb
rmagick-2.13.3.rc1 doc/ex/average.rb
rmagick-2.13.2 doc/ex/average.rb
rdp-rmagick-0.0.0 doc/ex/average.rb
rmagick-2.13.1 doc/ex/average.rb
rmagick-2.12.2 doc/ex/average.rb
rmagick-2.12.1 doc/ex/average.rb
rmagick-2.12.0 doc/ex/average.rb
rmagick-2.11.1 doc/ex/average.rb
rmagick-2.10.0 doc/ex/average.rb
rmagick-2.11.0 doc/ex/average.rb
rmagick-1.10.1 doc/ex/average.rb
rmagick-1.10.0 doc/ex/average.rb
rmagick-1.13.0 doc/ex/average.rb
rmagick-1.12.0 doc/ex/average.rb
rmagick-1.11.1 doc/ex/average.rb
rmagick-1.11.0 doc/ex/average.rb
rmagick-1.14.0 doc/ex/average.rb
rmagick-1.15.10 doc/ex/average.rb