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-2.7.0 doc/ex/modulate.rb
rmagick-2.7.1 doc/ex/modulate.rb
rmagick-2.7.2 doc/ex/modulate.rb
rmagick-2.8.0 doc/ex/modulate.rb
rmagick-2.9.1 doc/ex/modulate.rb
rmagick-2.9.2 doc/ex/modulate.rb
rmagick-2.9.0 doc/ex/modulate.rb