#!/usr/local/bin/ruby18 -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
