Sha256: 7cb738c800864b64930d163329dfcee9af40d6da5db9a7b7766e239505515144

Contents?: true

Size: 234 Bytes

Versions: 13

Compression:

Stored size: 234 Bytes

Contents

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

# Demonstrate the splice method.

img = Magick::Image.read('images/Flower_Hat.jpg').first
spliced_img = img.splice(img.columns/2, img.rows/2, 20, 20, 'gray80')
spliced_img.write('splice.jpg')

Version data entries

13 entries across 13 versions & 3 rubygems

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