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.5.0 doc/ex/bilevel_channel.rb
rmagick-2.5.2 doc/ex/bilevel_channel.rb
rmagick-2.8.0 doc/ex/bilevel_channel.rb
rmagick-2.7.0 doc/ex/bilevel_channel.rb
rmagick-2.7.1 doc/ex/bilevel_channel.rb
rmagick-2.7.2 doc/ex/bilevel_channel.rb
rmagick-2.9.0 doc/ex/bilevel_channel.rb
rmagick-2.9.2 doc/ex/bilevel_channel.rb
rmagick-2.9.1 doc/ex/bilevel_channel.rb