Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 8 lines (6 sloc) 0.257 kb
1f35f69 Replaces doc/ex/Adispatch.rb and Zconstitute.rb
rmagick authored
1 #! /usr/local/bin/ruby -w
2 require 'RMagick'
3
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.