Sha256: a95ff77c9155bf746540214d8714ed9b79558cbfa775497091f4f27e59c75a83

Contents?: true

Size: 254 Bytes

Versions: 24

Compression:

Stored size: 254 Bytes

Contents

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

# Demonstrate the Image#level method

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

# Brighten up the mid-tones a bit.
after = before.level(0, Magick::MaxRGB, 1.50)
after.write('level.jpg')
exit

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rmagick-1.12.0 doc/ex/level.rb
rmagick-1.13.0 doc/ex/level.rb
rmagick-1.11.0 doc/ex/level.rb
rmagick-1.11.1 doc/ex/level.rb
rmagick-1.15.1 doc/ex/level.rb
rmagick-1.15.0 doc/ex/level.rb
rmagick-1.15.10 doc/ex/level.rb
rmagick-1.14.0 doc/ex/level.rb
rmagick-1.14.1 doc/ex/level.rb
rmagick-1.15.13 doc/ex/level.rb
rmagick-1.15.12 doc/ex/level.rb
rmagick-1.15.11 doc/ex/level.rb
rmagick-1.15.14 doc/ex/level.rb
rmagick-1.15.15 doc/ex/level.rb
rmagick-1.15.4 doc/ex/level.rb
rmagick-1.15.16 doc/ex/level.rb
rmagick-1.15.17 doc/ex/level.rb
rmagick-1.15.2 doc/ex/level.rb
rmagick-1.15.3 doc/ex/level.rb
rmagick-1.15.8 doc/ex/level.rb