Sha256: 0f7e7fb64137623956dba845597b2e1e98675f78ca64477e52e4d2df3a063e8c

Contents?: true

Size: 219 Bytes

Versions: 29

Compression:

Stored size: 219 Bytes

Contents

#! /usr/local/bin/ruby -w

require 'RMagick'

img = Magick::Image.read('images/Flower_Hat.jpg').first
result = img.bilevel_channel(2*Magick::QuantumRange/3, Magick::RedChannel)
result.write('bilevel_channel.jpg')
exit

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/bilevel_channel.rb
rmagick-2.13.3 doc/ex/bilevel_channel.rb
rmagick-2.13.3.rc1 doc/ex/bilevel_channel.rb
rmagick-2.13.2 doc/ex/bilevel_channel.rb
rdp-rmagick-0.0.0 doc/ex/bilevel_channel.rb
rmagick-2.13.1 doc/ex/bilevel_channel.rb
rmagick-2.12.2 doc/ex/bilevel_channel.rb
rmagick-2.12.1 doc/ex/bilevel_channel.rb
rmagick-2.12.0 doc/ex/bilevel_channel.rb
rmagick-2.11.1 doc/ex/bilevel_channel.rb
rmagick-2.10.0 doc/ex/bilevel_channel.rb
rmagick-2.11.0 doc/ex/bilevel_channel.rb
rmagick-2.2.0 doc/ex/bilevel_channel.rb
rmagick-2.0.0 doc/ex/bilevel_channel.rb
rmagick-2.1.0 doc/ex/bilevel_channel.rb
rmagick-2.2.2 doc/ex/bilevel_channel.rb
rmagick-2.3.0 doc/ex/bilevel_channel.rb
rmagick-2.6.0 doc/ex/bilevel_channel.rb
rmagick-2.5.1 doc/ex/bilevel_channel.rb
rmagick-2.4.0 doc/ex/bilevel_channel.rb