Sha256: 3ce50f919a21a66790d908ac398054e49121fc7e18b3c7199975760ff779d026
Contents?: true
Size: 438 Bytes
Versions: 38
Compression:
Stored size: 438 Bytes
Contents
#! /usr/local/bin/ruby -w require 'RMagick' # Demonstrate the Image#radial_blur method img = Magick::Image.read('images/Flower_Hat.jpg').first # Make a blurry copy. begin result = img.radial_blur(10.0) # Substitute the standard "Not Implemented" image rescue NotImplementedError result = Magick::Image.read("images/notimplemented.gif").first result.resize!(img.columns, img.rows) end result.write('radial_blur.jpg') exit
Version data entries
38 entries across 38 versions & 1 rubygems