Sha256: b4ee01165883b5b95d8aeb8708b32ab265ec4b6e560ebe6a1f93e5af63943830

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

#!/home/software/ruby-1.6.8/bin/ruby -w

# Demonstrate the random_channel_threshold method

require 'RMagick'
include Magick

img = Image.read('images/Flower_Hat.jpg').first

begin
    img2 = img.random_channel_threshold('intensity', '35%')
rescue NotImplementedError
    img2 = Image.read('images/notimplemented.gif').first
end

img2.write('random_channel_threshold.jpg')
exit

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rmagick-1.7.1 doc/ex/random_channel_threshold.rb
rmagick-1.7.2 doc/ex/random_channel_threshold.rb
rmagick-1.7.3 doc/ex/random_channel_threshold.rb
rmagick-1.7.4 doc/ex/random_channel_threshold.rb
rmagick-1.8.0 doc/ex/random_channel_threshold.rb
rmagick-1.8.1 doc/ex/random_channel_threshold.rb
rmagick-1.8.2 doc/ex/random_channel_threshold.rb
rmagick-1.8.3 doc/ex/random_channel_threshold.rb
rmagick-1.9.0 doc/ex/random_channel_threshold.rb