Sha256: 16d982ca61e44db130acefe98566aaa537331627f12fb44b33d8041d2883d80f

Contents?: true

Size: 238 Bytes

Versions: 6

Compression:

Stored size: 238 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

6 entries across 6 versions & 1 rubygems

Version Path
rmagick-4.1.0.rc2 doc/ex/splice.rb
rmagick-4.1.0.rc1 doc/ex/splice.rb
rmagick-4.0.0 doc/ex/splice.rb
rmagick-3.2.0 doc/ex/splice.rb
rmagick-3.1.0 doc/ex/splice.rb
rmagick-3.0.0 doc/ex/splice.rb