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

load 'pixels-array'

puts 'This may take a few seconds...'
image = Magick::Image.constitute(Width, Height, "RGB", Pixels)
#image.display
image.write("constitute.jpg")
exit

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

$stdout.sync = true
if RUBY_VERSION < '1.8.0'
    puts 'This example can take several minutes to run...'
else
    puts 'This may take a few seconds...'
end
load 'pixels-array'

image = Magick::Image.constitute(Width, Height, "RGB", Pixels)

image.write("constitute.jpg")
exit

Add warning for RUby < 1.8.0, this can take a loooong time to run.
Add warning for RUby < 1.8.0, this can take a loooong time to run.
