Sha256: 6db74af493496d27b5755bf6f9af91907bcd8742f69a5591d491da01ae44014a

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

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

# Demonstrate the Image#level method

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

# Allow the white-point argument to default.
# Brighten up the mid-tones a bit.
after = before.level(0,1.50)
after.write('level.jpg')
exit

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rmagick-1.10.0 doc/ex/level.rb
rmagick-1.10.1 doc/ex/level.rb
rmagick-1.7.1 doc/ex/level.rb
rmagick-1.7.2 doc/ex/level.rb
rmagick-1.7.3 doc/ex/level.rb
rmagick-1.7.4 doc/ex/level.rb
rmagick-1.8.0 doc/ex/level.rb
rmagick-1.8.1 doc/ex/level.rb
rmagick-1.8.2 doc/ex/level.rb
rmagick-1.8.3 doc/ex/level.rb
rmagick-1.9.0 doc/ex/level.rb
rmagick-1.9.1 doc/ex/level.rb
rmagick-1.9.2 doc/ex/level.rb
rmagick-1.9.3 doc/ex/level.rb