Sha256: 90eac29e4a42691e11a47e02e002ec777c0ea8a0eec9d568b47878d89bf794c5

Contents?: true

Size: 229 Bytes

Versions: 19

Compression:

Stored size: 229 Bytes

Contents

#!/usr/bin/env ruby -w
require 'rmagick'

# Demonstrate the Image#edge method

img = Magick::Image.read('images/Flower_Hat.jpg').first
img = img.quantize(256, Magick::GRAYColorspace)
img = img.edge(5)

img.write('edge.jpg')
exit

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
rmagick-4.1.0.rc2 doc/ex/edge.rb
rmagick-4.1.0.rc1 doc/ex/edge.rb
rmagick-4.0.0 doc/ex/edge.rb
rmagick-3.2.0 doc/ex/edge.rb
rmagick-3.1.0 doc/ex/edge.rb
rmagick-3.0.0 doc/ex/edge.rb
rmagick-windows-2.16.5 doc/ex/edge.rb
rmagick-windows-2.16.4 doc/ex/edge.rb
rmagick-windows-2.16.3 doc/ex/edge.rb
rmagick-windows-2.16.2 doc/ex/edge.rb
rmagick-windows-2.16.1 doc/ex/edge.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rmagick-2.16.0/doc/ex/edge.rb
rmagick-2.16.0 doc/ex/edge.rb
rmagick-2.15.4 doc/ex/edge.rb
rmagick-2.15.3 doc/ex/edge.rb
rmagick-2.15.2 doc/ex/edge.rb
rmagick-2.15.1 doc/ex/edge.rb
rmagick-2.15.0 doc/ex/edge.rb
rmagick-2.14.0 doc/ex/edge.rb