Sha256: 398b3e627a37bed86119035ddbf8a86abf674dfffb60fbb6a0859b5d8fd18df6

Contents?: true

Size: 199 Bytes

Versions: 67

Compression:

Stored size: 199 Bytes

Contents

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

# Demonstrate the Image#modulate method

img = Magick::Image.read('images/Flower_Hat.jpg').first

img = img.modulate(0.85)

img.write('modulate.jpg')
exit

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
rmagick-1.7.2 doc/ex/modulate.rb
rmagick-1.7.3 doc/ex/modulate.rb
rmagick-1.8.0 doc/ex/modulate.rb
rmagick-1.8.1 doc/ex/modulate.rb
rmagick-1.8.3 doc/ex/modulate.rb
rmagick-1.8.2 doc/ex/modulate.rb
rmagick-1.9.2 doc/ex/modulate.rb
rmagick-1.9.1 doc/ex/modulate.rb
rmagick-1.9.0 doc/ex/modulate.rb
rmagick-2.1.0 doc/ex/modulate.rb
rmagick-2.0.0 doc/ex/modulate.rb
rmagick-2.2.2 doc/ex/modulate.rb
rmagick-1.9.3 doc/ex/modulate.rb
rmagick-2.2.0 doc/ex/modulate.rb
rmagick-2.3.0 doc/ex/modulate.rb
rmagick-2.6.0 doc/ex/modulate.rb
rmagick-2.5.1 doc/ex/modulate.rb
rmagick-2.4.0 doc/ex/modulate.rb
rmagick-2.5.0 doc/ex/modulate.rb
rmagick-2.5.2 doc/ex/modulate.rb