Sha256: 3cb5e081616eb44426a90da41e30ba6cedd8f33ec315a674d364dbfe4b3b7945

Contents?: true

Size: 215 Bytes

Versions: 13

Compression:

Stored size: 215 Bytes

Contents

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

13 entries across 13 versions & 3 rubygems

Version Path
rmagick-windows-2.16.5 doc/ex/bilevel_channel.rb
rmagick-windows-2.16.4 doc/ex/bilevel_channel.rb
rmagick-windows-2.16.3 doc/ex/bilevel_channel.rb
rmagick-windows-2.16.2 doc/ex/bilevel_channel.rb
rmagick-windows-2.16.1 doc/ex/bilevel_channel.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/doc/ex/bilevel_channel.rb
rmagick-2.16.0 doc/ex/bilevel_channel.rb
rmagick-2.15.4 doc/ex/bilevel_channel.rb
rmagick-2.15.3 doc/ex/bilevel_channel.rb
rmagick-2.15.2 doc/ex/bilevel_channel.rb
rmagick-2.15.1 doc/ex/bilevel_channel.rb
rmagick-2.15.0 doc/ex/bilevel_channel.rb
rmagick-2.14.0 doc/ex/bilevel_channel.rb