Sha256: f350554ccbef5fa1deedc5c18790a9b79008757cf992f73d4b808e6b71342c32

Contents?: true

Size: 248 Bytes

Versions: 6

Compression:

Stored size: 248 Bytes

Contents

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

# Demonstrate the Image#rotate method

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

img.rotate!(45)

# Make the corners transparent
img = img.matte_replace(0, 0)

img.write('rotate_f.jpg')
exit

Version data entries

6 entries across 6 versions & 1 rubygems

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