Sha256: 58f175277c9d543205ac003956aee7e9b1d62a61972c460e2d8f96cc15fbb387

Contents?: true

Size: 300 Bytes

Versions: 67

Compression:

Stored size: 300 Bytes

Contents

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

# Demonstrate the Image#shave method

img = Magick::Image.read('images/Flower_Hat.jpg').first

img = img.shave(20, 25)

# Add a border so the shaved image is the
# same size as the original image.
img.border!(20, 25, 'white')

img.write('shave.jpg')
exit

Version data entries

67 entries across 67 versions & 2 rubygems

Version Path
rmagick-2.13.4 doc/ex/shave.rb
rmagick-2.13.3 doc/ex/shave.rb
rmagick-2.13.3.rc1 doc/ex/shave.rb
rmagick-2.13.2 doc/ex/shave.rb
rdp-rmagick-0.0.0 doc/ex/shave.rb
rmagick-2.13.1 doc/ex/shave.rb
rmagick-2.12.2 doc/ex/shave.rb
rmagick-2.12.1 doc/ex/shave.rb
rmagick-2.12.0 doc/ex/shave.rb
rmagick-2.11.1 doc/ex/shave.rb
rmagick-2.10.0 doc/ex/shave.rb
rmagick-2.11.0 doc/ex/shave.rb
rmagick-1.10.0 doc/ex/shave.rb
rmagick-1.10.1 doc/ex/shave.rb
rmagick-1.12.0 doc/ex/shave.rb
rmagick-1.11.1 doc/ex/shave.rb
rmagick-1.11.0 doc/ex/shave.rb
rmagick-1.13.0 doc/ex/shave.rb
rmagick-1.15.1 doc/ex/shave.rb
rmagick-1.15.0 doc/ex/shave.rb