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.15.6 doc/ex/level.rb
rmagick-1.15.7 doc/ex/level.rb
rmagick-1.15.5 doc/ex/level.rb
rmagick-1.15.9 doc/ex/level.rb