Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 8 lines (6 sloc) 0.254 kB
7c0313a @bf4 Fix hard-coded ruby path
bf4 authored
1 #!/usr/bin/env ruby -w
8e151c4 @vassilevsky Use single quotes around strings where possible
vassilevsky authored
2 require 'rmagick'
1f35f69 Replaces doc/ex/Adispatch.rb and Zconstitute.rb
rmagick authored
3
8e151c4 @vassilevsky Use single quotes around strings where possible
vassilevsky authored
4 f = Magick::Image.read('../doc/ex/images/Flower_Hat.jpg').first
5 pixels = f.dispatch(0,0,f.columns, f.rows, 'RGB')
6 image = Magick::Image.constitute(f.columns, f.rows, 'RGB', pixels)
7 image.write('constitute.miff')
Something went wrong with that request. Please try again.