Sha256: 3ca2b7548f884e68b6e97e6c05128427895e26257daf98926e26c118420928ce

Contents?: true

Size: 245 Bytes

Versions: 29

Compression:

Stored size: 245 Bytes

Contents

#! /usr/local/bin/ruby -w
require 'RMagick'

# Demonstrate the Image#negate_channel method

img = Magick::Image.read('images/Flower_Hat.jpg').first
result = img.negate_channel(false, Magick::GreenChannel)
result.write('negate_channel.jpg')
exit

Version data entries

29 entries across 29 versions & 2 rubygems

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