Sha256: 9362530fffae4e719ab3ba326abd3eb3ca8c1633da8bedd0ac2944ed1208e571

Contents?: true

Size: 390 Bytes

Versions: 21

Compression:

Stored size: 390 Bytes

Contents

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

# Demonstrate the Image#transpose method

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

begin
    img = img.transpose
rescue NotImplementedError
    not_implemented = Magick::Image.read("images/notimplemented.gif").first
    not_implemented.resize!(img.columns, img.rows)
    img = not_implemented
end
img.write('transpose.jpg')
exit

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rmagick-1.13.0 doc/ex/transpose.rb
rmagick-1.14.0 doc/ex/transpose.rb
rmagick-1.14.1 doc/ex/transpose.rb
rmagick-1.15.0 doc/ex/transpose.rb
rmagick-1.15.1 doc/ex/transpose.rb
rmagick-1.15.10 doc/ex/transpose.rb
rmagick-1.15.11 doc/ex/transpose.rb
rmagick-1.15.12 doc/ex/transpose.rb
rmagick-1.15.13 doc/ex/transpose.rb
rmagick-1.15.14 doc/ex/transpose.rb
rmagick-1.15.15 doc/ex/transpose.rb
rmagick-1.15.16 doc/ex/transpose.rb
rmagick-1.15.17 doc/ex/transpose.rb
rmagick-1.15.2 doc/ex/transpose.rb
rmagick-1.15.3 doc/ex/transpose.rb
rmagick-1.15.4 doc/ex/transpose.rb
rmagick-1.15.5 doc/ex/transpose.rb
rmagick-1.15.6 doc/ex/transpose.rb
rmagick-1.15.7 doc/ex/transpose.rb
rmagick-1.15.8 doc/ex/transpose.rb